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]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to