Hi,
I'm trying to use the M2 Eclipse Plugin but running into a strange problem:
running mvn compile from the command line works fine (no errors), running
the compile target through the M2 plugin as an external tool just like the
flash demo shows results in the following:
[INFO]
----------------------------------------------------------------------------
[INFO] Building My Project
[INFO]    task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
[INFO] resources:resources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:compile
Compiling 28 source files to C:\myproject\target\classes
[ERROR] mojo-execute : compiler:compile
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : com.myproject:jar:1.0-SNAPSHOT (  task-segment:
[compile] )
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
org.apache.maven.BuildFailureException: Compilation failure
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:552)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:472)
        at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:413)
        at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
        at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:429)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
        ... 8 more

This is Eclipse 3.1.2, Sun JDK 1.5.0_06 on Windows XP.

A search of the list archives reveals at least two similar problems reported
by people, but no answers to either previous posting:
http://article.gmane.org/gmane.comp.jakarta.turbine.maven.user/38886/match=compilation
http://article.gmane.org/gmane.comp.jakarta.turbine.maven.user/38275/match=compilation

Any help would be appreciated.  Thanks,

Yoav
--
View this message in context: 
http://www.nabble.com/M2-Eclipse-Plugin-Giving-Spurious-Compilation-Errors-t1330755.html#a3553559
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to