views:

15

answers:

2

I'm using Maven integration for Eclipse(0.10.2) on Eclipse Helios(3.6). Eclipse can successfully build my project. but the maven build fails because the compiler can't resolve the PropertiesEditor class in dependency jar spring-beans-2.5.6. What should be looking for to fix it?

A: 

here is what maven tells me

    [INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for witerat:iWPC:war:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' should use a variable instead of a hard-coded path: javax:mail:jar -> c:\sun\sdk\lib\mail.jar @ witerat:iWPC:0.0.1-SNAPSHOT, C:\Users\John\workspace36\iBffsdb\pom.xml
[WARNING] 'dependencies.dependency.systemPath' should use a variable instead of a hard-coded path: junit:junit:jar -> C:\dev\eclipse\plugins\org.junit_3.8.2.v20080602-1318\junit.jar @ witerat:iWPC:0.0.1-SNAPSHOT, C:\Users\John\workspace36\iBffsdb\pom.xml
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building WPC on the web 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] snapshot jcivicrm-dao:jcivicrm-dao:0.0.1-SNAPSHOT: checking for updates from releases-local
2010-08-22 16:43:39.047:INFO::Logging to StdErrLog::DEBUG=false via org.eclipse.jetty.util.log.StdErrLog
[INFO] snapshot jcivicrm-dao:jcivicrm-dao:0.0.1-SNAPSHOT: checking for updates from snapshots-local
2010-08-22 16:43:43.687:WARN::1 threads could not be stopped
[INFO] snapshot jcivicrm-dao:jcivicrm-dao:0.0.1-SNAPSHOT: checking for updates from maven2-repository.dev.java.net
[INFO] snapshot JCivicrm-platform:JCivicrm-platform:0.0.1-SNAPSHOT: checking for updates from releases-local
[INFO] snapshot JCivicrm-platform:JCivicrm-platform:0.0.1-SNAPSHOT: checking for updates from snapshots-local
[INFO] snapshot JCivicrm-platform:JCivicrm-platform:0.0.1-SNAPSHOT: checking for updates from maven2-repository.dev.java.net
[INFO] snapshot JCiviCRM:JCiviCRM:0.0.1-SNAPSHOT: checking for updates from releases-local
[INFO] snapshot JCiviCRM:JCiviCRM:0.0.1-SNAPSHOT: checking for updates from snapshots-local
[INFO] snapshot JCiviCRM:JCiviCRM:0.0.1-SNAPSHOT: checking for updates from maven2-repository.dev.java.net
[INFO] snapshot nz.org.wpc.user.security:nz.org.wpc.user.security:0.0.1-SNAPSHOT: checking for updates from releases-local
[INFO] snapshot nz.org.wpc.user.security:nz.org.wpc.user.security:0.0.1-SNAPSHOT: checking for updates from snapshots-local
[INFO] snapshot nz.org.wpc.user.security:nz.org.wpc.user.security:0.0.1-SNAPSHOT: checking for updates from maven2-repository.dev.java.net
[INFO] 
[INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ iWPC ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 23 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ iWPC ---
[INFO] Compiling 126 source files to C:\Users\John\workspace36\iBffsdb\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] \Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[88,59] cannot find symbol
symbol  : class PropertiesEditor
location: class nz.org.wpc.admin.options.OptionsServiceController

[ERROR] \Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[90,8] method does not override or implement a method from a supertype

[ERROR] \Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[95,8] method does not override or implement a method from a supertype

[ERROR] \Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[918,14] cannot find symbol
symbol  : method registerCustomEditor(java.lang.Class<nz.org.wpc.admin.options.OptionsServiceController.PermissionModel.RawBeanData>,nz.org.wpc.admin.options.OptionsServiceController.ACEListPropertyEditor)
location: class org.springframework.web.bind.ServletRequestDataBinder

[ERROR] \Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[919,14] cannot find symbol
symbol  : method registerCustomEditor(java.lang.Class<nz.org.wpc.admin.options.OptionsServiceController.RoleChengesPropertyEditor.RoleChanges>,nz.org.wpc.admin.options.OptionsServiceController.RoleChengesPropertyEditor)
location: class org.springframework.web.bind.ServletRequestDataBinder

[INFO] 5 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.787s
[INFO] Finished at: Sun Aug 22 16:44:00 NZST 2010
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project iWPC: Compilation failure: Compilation failure: 
\Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[88,59] cannot find symbol
symbol  : class PropertiesEditor
location: class nz.org.wpc.admin.options.OptionsServiceController

\Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[90,8] method does not override or implement a method from a supertype

\Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[95,8] method does not override or implement a method from a supertype

\Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[918,14] cannot find symbol
symbol  : method registerCustomEditor(java.lang.Class<nz.org.wpc.admin.options.OptionsServiceController.PermissionModel.RawBeanData>,nz.org.wpc.admin.options.OptionsServiceController.ACEListPropertyEditor)
location: class org.springframework.web.bind.ServletRequestDataBinder

\Users\John\workspace36\iBffsdb\src\main\java\nz\org\wpc\admin\options\OptionsServiceController.java:[919,14] cannot find symbol
symbol  : method registerCustomEditor(java.lang.Class<nz.org.wpc.admin.options.OptionsServiceController.RoleChengesPropertyEditor.RoleChanges>,nz.org.wpc.admin.options.OptionsServiceController.RoleChengesPropertyEditor)
location: class org.springframework.web.bind.ServletRequestDataBinder
-> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
John
A: 

here is my pom

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
 <modelVersion>4.0.0</modelVersion>
 <groupId>witerat</groupId>
 <artifactId>iWPC</artifactId>
 <packaging>war</packaging>
 <version>0.0.1-SNAPSHOT</version>
 <name>WPC on the web</name>
 <url>http://wellingtonpeoplescentre.org.nz&lt;/url&gt;
 <organization>
  <name>Wellington People's Centre</name>
  <url>http://wellingtonpeoplescentre.org.nz&lt;/url&gt;
 </organization>


 <build>
  <defaultGoal>package</defaultGoal>
  <finalName>iBffsdb</finalName>
  <sourceDirectory>src/main/java</sourceDirectory>
  <testSourceDirectory>src/test/java</testSourceDirectory>
  <directory>target</directory>  
  <resources>
   <resource>
    <directory>src/main/resources</directory>
   </resource>
  </resources>
  <testResources>
   <testResource>
    <directory>src/test/resources</directory>
   </testResource>
  </testResources>
  <plugins>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>

    <version>2.1-beta-1</version>
    <configuration>
    <overlays>
    <!-- 
      <overlay>      
       <groupId>org.dojotoolkit</groupId>       
       <artifactId>dojo-war</artifactId>
       <targetPath>javascript</targetPath>
      </overlay> -->
      <overlay>
       <groupId>jcivicrm-dao</groupId>
       <artifactId>jcivicrm-dao</artifactId>
       <type>jar</type>
       <targetPath>WEB-INF/classes</targetPath>
      </overlay>
    </overlays>
    <warSourceDirectory>WebContent</warSourceDirectory>
    </configuration>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.1</version>
    <configuration>
        <encoding>Cp1252</encoding>
     <fork>true</fork>

     <verbose>true</verbose>    
     <source>1.6</source>
     <target>1.6</target>
    </configuration>
   </plugin>

  </plugins>
 </build>
 <repositories>
  <repository>
   <id>snapshots-local</id>
   <name>snaps</name>
   <url>http://localhost:12120/nexus-webapp-1.7.1/content/repositories/snapshots/&lt;/url&gt;
   <releases>
    <enabled>false</enabled>
   </releases>
   <snapshots>
     <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
    <checksumPolicy>warn</checksumPolicy>
   </snapshots>
  </repository>
 </repositories>
 <dependencies>
  <dependency>
   <groupId>jcivicrm-dao</groupId>
   <artifactId>jcivicrm-dao</artifactId>
   <version>0.0.1-SNAPSHOT</version>
  </dependency><dependency>
   <groupId>JCivicrm-platform</groupId>
   <artifactId>JCivicrm-platform</artifactId>
   <version>0.0.1-SNAPSHOT</version>
  </dependency><dependency>
   <groupId>JCiviCRM</groupId>
   <artifactId>JCiviCRM</artifactId>
   <version>0.0.1-SNAPSHOT</version>
  </dependency><dependency>
   <groupId>nz.org.wpc.user.security</groupId>
   <artifactId>nz.org.wpc.user.security</artifactId>
   <version>0.0.1-SNAPSHOT</version>
    </dependency><dependency>
   <groupId>com.h2database</groupId>
   <artifactId>h2</artifactId>
   <version>1.1.111</version>
  </dependency><dependency>
   <groupId>commons-collections</groupId>
   <artifactId>commons-collections</artifactId>
   <version>3.2.1</version>
  </dependency><dependency>
   <groupId>commons-dbcp</groupId>
   <artifactId>commons-dbcp</artifactId>
   <version>1.2.2</version>
  </dependency><dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.4</version> 
   <scope>provided</scope>
  </dependency><dependency>
   <groupId>javax</groupId>
   <artifactId>mail</artifactId>
   <version>1.5</version>
   <scope>system</scope>
   <systemPath>c:\sun\sdk\lib\mail.jar</systemPath>
  </dependency><dependency>
   <groupId>javax.transaction</groupId>
   <artifactId>jta</artifactId>
   <version>1.0.1B</version>
  </dependency><dependency>
   <groupId>junit</groupId>
   <artifactId>junit</artifactId>
   <version>3.8.2</version>
   <scope>system</scope>
   <systemPath>C:\dev\eclipse\plugins\org.junit_3.8.2.v20080602-1318\junit.jar</systemPath>
  </dependency><dependency>
     <groupId>net.sf.ehcache</groupId>
     <artifactId>ehcache</artifactId>
     <version>1.6.0</version>
    </dependency><dependency>
   <groupId>net.sf.json-lib</groupId>
   <artifactId>json-lib-ext-spring</artifactId>
   <version>1.0.2</version>
  </dependency><dependency>
     <groupId>org.aspectj</groupId>
     <artifactId>aspectjrt</artifactId>
     <version>1.5.4</version>
     <scope>runtime</scope>
  </dependency><dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-orm</artifactId>
   <version>2.5.6</version>
  </dependency><dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-webmvc</artifactId>
   <version>2.5.6</version>
  </dependency><dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context-support</artifactId>
   <version>2.5.6</version>
  </dependency><dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-jdbc</artifactId>
   <version>2.5.6</version>
  </dependency><dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-core</artifactId>
   <version>2.0.4</version>
   <exclusions>
    <exclusion>
     <groupId>org.springframework</groupId>
     <artifactId>spring-aop</artifactId>
    </exclusion><exclusion>
     <groupId>org.springframework</groupId>
     <artifactId>spring-support</artifactId>
    </exclusion><exclusion>
     <groupId>org.springframework</groupId>
     <artifactId>spring-remoting</artifactId>
    </exclusion>
   </exclusions>
  </dependency><dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aop</artifactId>
   <version>2.5.6</version>
  </dependency><dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-acl</artifactId>
   <version>2.0.4</version>
  </dependency><dependency>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-core-tiger</artifactId>
     <version>2.0.4</version>
    </dependency><dependency>
     <groupId>org.springframework.security</groupId>
     <artifactId>spring-security-taglibs</artifactId>
     <version>2.0.5.RELEASE</version>
    </dependency><dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-beans</artifactId>
   <version>2.5.6</version>
   <type>jar</type>
   <scope>compile</scope>
  </dependency><dependency>
   <groupId>velocity</groupId>
   <artifactId>velocity</artifactId>
   <version>1.4</version>
  </dependency><dependency>
   <groupId>org.hibernate</groupId>
   <artifactId>hibernate</artifactId>
   <version>3.2.6.ga</version>
   <type>jar</type>
   <scope>compile</scope>
  </dependency>
 </dependencies>

 <distributionManagement>
  <repository>
   <id>releases-local</id>
   <name>releases</name>
   <url>http://localhost:12120/nexus-webapp-1.7.1/content/repositories/releases/&lt;/url&gt;
  </repository>
  <snapshotRepository>
   <id>snapshot-local</id>
   <name>snaps</name>
   <url>http://localhost:12120/nexus-webapp-1.7.1/content/repositories/snapshots/&lt;/url&gt;
  </snapshotRepository>
 </distributionManagement>
</project>
John