Hi,
I have recently installed Eclipse Europa with the Maven 2 eclipse plugin,
I'm using the same workspace as with my previous IDE (Borland Together 2007)
so I have the same projects (they compiled in Together).
When I run the 'test-compile' target in Europa the following exceptions
appear:
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building InfoMagic Platform Server Admin Model
[INFO] task-segment: [test-compile]
[INFO]
----------------------------------------------------------------------------
[INFO] resources:resources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:compile
[INFO] Nothing to compile - all classes are up to date
[INFO] resources:testResources
[INFO] Using default encoding to copy filtered resources.
org.apache.maven.plugin.CompilationFailureException: Compilation failure
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.ja
va:516)
at
org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:578)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:508)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:328)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:151)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220)
at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813)
at
org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85)
[INFO] compiler:testCompile
[INFO] Compiling 21 source files to
D:\workspace\imp-server-admin-model\target\test-classes
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
com.thales.imp:imp-server-admin-model:jar:0.07-SNAPSHOT ( task-segment:
[test-compile] )
[INFO]
----------------------------------------------------------------------------
[INFO] Build for project:
com.thales.imp:imp-server-admin-model:jar:0.07-SNAPSHOT failed during
execution of mojo:
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 3 second
[INFO] Finished at: Tue Dec 18 13:17:43 CET 2007
[INFO] Memory 5M/15M
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Build for project:
com.thales.imp:imp-server-admin-model:jar:0.07-SNAPSHOT failed during
execution of mojo:
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 3 second
[INFO] Finished at: Tue Dec 18 13:17:43 CET 2007
[INFO] Memory 5M/15M
[INFO]
----------------------------------------------------------------------------
The structure of my project is made of a root POM and severable modules:
<modules>
. . .
<module>../imp-server-admin-model</module>
. . .
</modules>
The exception does not appear with each project (module), the compilation
successfully completed if I run maven without Eclipse.
Do you know how to solve this problem ? The exception is not very explicit,
is their any solution to see more logs ?
Thanks.
Baptiste GAILLARD