[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[m2e-users] m2e-core 0.12.0 regression: "Guice provision errors"
|
For a very simple project using the modello-plugin, I get the following error when executing Run As Maven install with the staged 0.12.0.20101102-1505 version of m2e-core:
[ERROR] Failed to execute goal org.codehaus.modello:modello-maven-plugin:1.4.1:java (myModel) on project modello-regression: Execution myModel of goal org.codehaus.modello:modello-maven-plugin:1.4.1:java failed: Guice provision errors:
[ERROR]
[ERROR] 1) Error injecting: org.codehaus.modello.plugin.java.JavaModelloGenerator
[ERROR] at ClassRealm[plugin>org.codehaus.modello:modello-maven-plugin:1.4.1, parent: ClassRealm[maven.api, parent: null]]
[ERROR] while locating org.codehaus.modello.plugin.ModelloGenerator annotated with @com.google.inject.name.Named(value=java)
[ERROR]
[ERROR] 1 error: Guice provision errors:
[ERROR]
[ERROR] 1) Error notifying InjectionListener org.sonatype.guice.plexus.binders.PlexusBeanBinder@3dae160 of org.codehaus.modello.plugin.java.JavaModelloGenerator.
[ERROR] Reason: java.lang.ClassCastException: org.sonatype.plexus.build.incremental.DefaultBuildContext cannot be cast to org.sonatype.plexus.build.incremental.BuildContext
[ERROR] while locating org.codehaus.modello.plugin.java.JavaModelloGenerator
[ERROR]
[ERROR] 1 error
[ERROR] -> [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/PluginExecutionException
I'm using the embedded version of Maven 3.
The same project works with the old 0.10.2.20100623-1649 version of m2e-core. It also works just fine with Maven 3.0 from command line.
The project can be found here:
http://dl.dropbox.com/u/5695604/modello-regression.zipOne weird thing though is that building a more complex project like maven-assembly-plugin that uses the modello-plugin works. I don't understand the difference. But the test project should help determining if it's a local issue at my machine.
/Anders