maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] slachiewicz commented on a change in pull request #185: [MNG-5995] Remove dependency to maven-compat
Date Sat, 13 Oct 2018 18:11:51 GMT
slachiewicz commented on a change in pull request #185: [MNG-5995] Remove dependency to maven-compat
URL: https://github.com/apache/maven/pull/185#discussion_r224967675
 
 

 ##########
 File path: pom.xml
 ##########
 @@ -545,6 +545,12 @@ under the License.
             </lifecycleMappingMetadata>
           </configuration>
         </plugin>
+        <!-- use 3.x version. Replace with final version -->
 
 Review comment:
   while try to compile maven-core, with maven-enforcer-plugin 1.4.1
   ```
   Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException:
com.google.inject.ProvisionException: Unable to provision, see the following errors:
   
   1) No implementation for org.apache.maven.project.path.PathTranslator was bound.
     while locating org.apache.maven.plugins.enforcer.EnforceMojo
     at ClassRealm[plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.4.1, parent:
jdk.internal.loader.ClassLoaders$AppClassLoader@4b9af9a9] (via modules: org.eclipse.sisu.wire.WireModule
-> org.eclipse.sisu.plexus.PlexusBindingModule)
     while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value="org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce")
   
   1 error
         role: org.apache.maven.plugin.Mojo
     roleHint: org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce
   ```
   with 3.0.0-M2 other error
   ```
   Caused by: org.apache.maven.plugin.PluginContainerException: A required class was missing
while executing org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce: org/apache/maven/artifact/resolver/ArtifactResolver
   -----------------------------------------------------
   realm =    plugin>org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2
   strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
   urls[0] = file:/C:/Users/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/3.0.0-M2/maven-enforcer-plugin-3.0.0-M2.jar
   urls[1] = file:/C:/Users/.m2/repository/org/codehaus/mojo/extra-enforcer-rules/1.0-beta-9/extra-enforcer-rules-1.0-beta-9.jar
   urls[2] = file:/C:/Users/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.2/maven-dependency-tree-2.2.jar
   urls[3] = file:/C:/Users/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
   urls[4] = file:/C:/Users/.m2/repository/junit/junit/4.11/junit-4.11.jar
   urls[5] = file:/C:/Users/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
   urls[6] = file:/C:/Users/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
   urls[7] = file:/C:/Users/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
   urls[8] = file:/C:/Users/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
   urls[9] = file:/C:/Users/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
   urls[10] = file:/C:/Users/.m2/repository/com/ibm/icu/icu4j/56.1/icu4j-56.1.jar
   urls[11] = file:/C:/Users/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
   urls[12] = file:/C:/Users/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
   urls[13] = file:/C:/Users/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
   urls[14] = file:/C:/Users/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
   urls[15] = file:/C:/Users/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar
   urls[16] = file:/C:/Users/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
   urls[17] = file:/C:/Users/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
   urls[18] = file:/C:/Users/.m2/repository/org/codehaus/plexus/plexus-utils/3.1.0/plexus-utils-3.1.0.jar
   urls[19] = file:/C:/Users/.m2/repository/org/apache/maven/enforcer/enforcer-api/3.0.0-M2/enforcer-api-3.0.0-M2.jar
   urls[20] = file:/C:/Users/.m2/repository/org/apache/maven/enforcer/enforcer-rules/3.0.0-M2/enforcer-rules-3.0.0-M2.jar
   urls[21] = file:/C:/Users/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar
   urls[22] = file:/C:/Users/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
   
   Caused by: java.lang.NoClassDefFoundError: org/apache/maven/artifact/resolver/ArtifactResolver
       at org.apache.maven.plugins.enforcer.AbstractResolveDependencies.execute (AbstractResolveDependencies.java:51)
       at org.apache.maven.plugins.enforcer.EnforceMojo.execute (EnforceMojo.java:194)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message