Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] m2e-core 0.12.0 regression: "Guice provision errors"

I've opened to track this.


On 10-11-04 11:12 AM, Anders Hammar wrote:
For a very simple project using the modello-plugin, I get the following
error when executing Run As Maven install with the staged 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] 1) Error injecting:
[ERROR] at
parent: ClassRealm[maven.api, parent: null]]
[ERROR] while locating org.codehaus.modello.plugin.ModelloGenerator
annotated with
[ERROR] 1 error: Guice provision errors:
[ERROR] 1) Error notifying InjectionListener
org.sonatype.guice.plexus.binders.PlexusBeanBinder@3dae160 of
[ERROR] Reason: java.lang.ClassCastException: cannot be cast
[ERROR] while locating
[ERROR] 1 error
[ERROR] -> [Help 1]
[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] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]

I'm using the embedded version of Maven 3.
The same project works with the old version of
m2e-core. It also works just fine with Maven 3.0 from command line.

The project can be found here:

One 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.


m2e-users mailing list

Back to the top