In maven version 2.0.8 we originally tried the following, but it did not resolve the generics issue that the plexus compiler has related to http://jira.codehaus.org/browse/PLXCOMP-100:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-compiler-eclipse</artifactId> <version>1.5</version> </dependency> </dependencies> </plugin> ... so we had to use the following settings to get maven to use the same eclipse compiler that we were using in our ide environment (provided we dropped the jar in maven/lib): <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <fork>true</fork> <compilerVersion>1.6</compilerVersion> <executable>java -classpath ${MAVEN_HOME}/lib/org.eclipse.jdt.core_X.jar org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar -sourcepath "src/main"</executable> </configuration> </plugin> In maven 2.0.9 using the above hack results in an exception. We even tried a suggestion that was found on a forum: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <dependencies> <dependency> <groupId>org.eclipse.jdt</groupId> <artifactId>core</artifactId> <version>3.3.0-v_771</version> </dependency> </dependencies> </plugin> The above had issues of it's own due to the common dependency version range (we resolved by manually installing in our company repository). It still did not work. Does anyone know how to accomplish this? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]