Hello Igor,

Thanks for your answer!

It builds with Maven 3.0.5 in the command line. On the IDE side, I use the
Luna JEE package.

Is m2e compatible with some versions of Maven only?

Cheers,

Sébastien

Le lundi 30 juin 2014, Igor Fedorenko <[email protected]> a écrit :

> Does your project build with maven 3.2.1 or 3.2.2 on command line?
>
> The exception suggests one of your plugins expects sonatype aether from
> maven 3.0.x, which means it is not compatible with m2e.
>
>
>
> On June 30, 2014 9:11:44 AM EDT, "Sébastien Pennec" <
> [email protected] <javascript:;>> wrote:
> >Hello,
> >
> >
> >
> >I’m having a strange error log with a Maven project. Here is the error
> >message:
> >
> >
> >
> >*Execution some-generation of goal
> >com.mycompany.maven.plugins:some-maven-plugin:1.1.1:generate failed: A
> >required class was missing while executing
> >com.mycompany.maven.plugins:some-maven-plugin:1.1.1:generate:
> >org/sonatype/aether/resolution/ArtifactResolutionException*
> >
> >
> >
> >It seems fairly straightforward, but I’m afraid it not. The build runs
> >perfectly with the command line. It’s only when the project is analyzed
> >by
> >M2E that this error pops up.
> >
> >
> >
> >The Maven plugin, which is developed in-house, has a dependency on
> >Aether
> >(the org.eclipse one, version 0.9.0.M3 along with the Maven runtime
> >3.0.3).
> > Are these dependencies the cause of the problem? I expect the M2E
> >dependencies and those that are needed by a Maven plugin to be
> >independent,
> >so using an older version of Aether in a plugin should not impact M2E,
> >is
> >that correct?
> >
> >
> >
> >Thanks for your help,
> >
> >
> >
> >Sébastien
> >
> >
> >
> >The full error message:
> >
> >
> >
> >Description         Resource             Path       Location
> >Type
> >
> >Execution some-generation of goal
> >com.mycompany.maven.plugins:some-maven-plugin:1.1.1:generate failed: A
> >required class was missing while executing
> >com.mycompany.maven.plugins:some-maven-plugin:1.1.1:generate:
> >org/sonatype/aether/resolution/ArtifactResolutionException
> >
> >-----------------------------------------------------
> >
> >realm =    plugin>com.mycompany.maven.plugins:some-maven-plugin:1.1.1
> >
> >strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> >
> >urls[0] =
>
> >file:/E:/projects/maven/maven-local-repo/com/mycompany/maven/plugins/some-maven-plugin/1.1.1/
> >some -maven-plugin-1.1.1.jar
> >
> >urls[1] = file:/E:/projects/maven/maven-local-repo/com/ mycompany
> >/maven/plugins/ some -maven-plugin/1.1.1/ some
> >-maven-plugin-1.1.1-resources.zip
> >
> >urls[2] =
>
> >file:/E:/projects/maven/maven-local-repo/com/company/something/3.5.0/something-3.5.0.jar
> >
> >urls[3] =
>
> >file:/E:/projects/maven/maven-local-repo/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar
> >
> >urls[4] =
>
> >file:/E:/projects/maven/maven-local-repo/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar
> >
> >urls[5] =
>
> >file:/E:/projects/maven/maven-local-repo/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar
> >
> >urls[6] =
>
> >file:/E:/projects/maven/maven-local-repo/org/apache/maven/shared/file-management/1.2/file-management-1.2.jar
> >
> >urls[7] =
>
> >file:/E:/projects/maven/maven-local-repo/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
> >
> >urls[8] =
> >file:/E:/projects/maven/maven-local-repo/junit/junit/4.11/junit-4.11.jar
> >
> >urls[9] =
>
> >file:/E:/projects/maven/maven-local-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
> >
> >urls[10] =
>
> >file:/E:/projects/maven/maven-local-repo/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar
> >
> >urls[11] =
>
> >file:/E:/projects/maven/maven-local-repo/org/codehaus/plexus/plexus-interpolation/1.15/plexus-interpolation-1.15.jar
> >
> >urls[12] =
>
> >file:/E:/projects/maven/maven-local-repo/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
> >
> >urls[13] =
>
> >file:/E:/projects/maven/maven-local-repo/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> >
> >urls[14] =
>
> >file:/E:/projects/maven/maven-local-repo/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> >
> >urls[15] = file:/E:/projects/maven/maven-local-repo/com/mycompany
> >/maven/maven-common-lib/1.0.3/maven-common-lib-1.0.3.jar
> >
> >Number of foreign imports: 1
> >
> >import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
> >
> >
> >
> >-----------------------------------------------------
> >
> >(com.mycompany.maven.plugins:some-maven-plugin:1.1.1:generate: some
> >-generation:generate-resources)                pom.xml
> >/myproject         line 2     Maven Build Problem
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >m2e-users mailing list
> >[email protected] <javascript:;>
> >https://dev.eclipse.org/mailman/listinfo/m2e-users
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to