Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-8392

org.sonatype.plugins:nexus-m2settings-maven-plugin:download Does not work with Maven 3.3.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 7
      Maven 3.3.1
      Java 1.8.0_40
    • Sprint:
      Sprint 40

      Description

      The plugin to download settings.xml files from Nexus does not work with Maven 3.3.1. It gives the following error

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- nexus-m2settings-maven-plugin:1.6.5:download (default-cli) @ standalone-pom ---
      [WARNING] Error injecting: org.sonatype.nexus.maven.m2settings.DownloadMojo
      java.lang.NoClassDefFoundError: org/slf4j/helpers/MarkerIgnoringBase
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
              at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
              at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
              at java.lang.Class.getDeclaredFields0(Native Method)
              at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
              at java.lang.Class.getDeclaredFields(Class.java:1916)
              at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661)
              at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
              at com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:165)
              at com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:612)
              at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:568)
              at com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:554)
              at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:877)
              at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:798)
              at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:281)
              at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:213)
              at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:998)
              at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1031)
              at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:994)
              at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
              at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
              at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
              at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54)
              at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
              at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
              at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
              at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
              at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
              at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
              at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46)
              at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059)
              at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
              at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:36)
              at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
              at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
              at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
              at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
              at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:543)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: java.lang.ClassNotFoundException: org.slf4j.helpers.MarkerIgnoringBase
              at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
              at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
              ... 86 more
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.139 s
      [INFO] Finished at: 2015-04-07T13:06:49-04:00
      [INFO] Final Memory: 8M/228M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.5:download (default-cli) on project standalone-pom: Execution default-cli of goal org.sonatype.plugins:nexus-m2set
      tings-maven-plugin:1.6.5:download failed: A required class was missing while executing org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.5:download: org/slf4j/helpers/MarkerIgnoringBase
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.5
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/C:/java/maven/repository_test/org/sonatype/plugins/nexus-m2settings-maven-plugin/1.6.5/nexus-m2settings-maven-plugin-1.6.5.jar
      [ERROR] urls[1] = file:/C:/java/maven/repository_test/org/sonatype/gossip/gossip-bootstrap/1.8/gossip-bootstrap-1.8.jar
      [ERROR] urls[2] = file:/C:/java/maven/repository_test/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
      [ERROR] urls[3] = file:/C:/java/maven/repository_test/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
      [ERROR] urls[4] = file:/C:/java/maven/repository_test/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
      [ERROR] urls[5] = file:/C:/java/maven/repository_test/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
      [ERROR] urls[6] = file:/C:/java/maven/repository_test/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar
      [ERROR] urls[7] = file:/C:/java/maven/repository_test/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
      [ERROR] urls[8] = file:/C:/java/maven/repository_test/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
      [ERROR] urls[9] = file:/C:/java/maven/repository_test/org/sonatype/plexus/plexus-cipher/1.7/plexus-cipher-1.7.jar
      [ERROR] urls[10] = file:/C:/java/maven/repository_test/com/google/guava/guava/14.0.1/guava-14.0.1.jar
      [ERROR] urls[11] = file:/C:/java/maven/repository_test/jline/jline/2.9/jline-2.9.jar
      [ERROR] urls[12] = file:/C:/java/maven/repository_test/org/codehaus/plexus/plexus-interpolation/1.15/plexus-interpolation-1.15.jar
      [ERROR] urls[13] = file:/C:/java/maven/repository_test/org/sonatype/nexus/nexus-client-core/2.9.1-02/nexus-client-core-2.9.1-02.jar
      [ERROR] urls[14] = file:/C:/java/maven/repository_test/org/sonatype/nexus/plugins/nexus-restlet1x-model/2.9.1-02/nexus-restlet1x-model-2.9.1-02.jar
      [ERROR] urls[15] = file:/C:/java/maven/repository_test/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
      [ERROR] urls[16] = file:/C:/java/maven/repository_test/com/intellij/annotations/9.0.4/annotations-9.0.4.jar
      [ERROR] urls[17] = file:/C:/java/maven/repository_test/commons-io/commons-io/2.4/commons-io-2.4.jar
      [ERROR] urls[18] = file:/C:/java/maven/repository_test/com/thoughtworks/xstream/xstream/1.4.7/xstream-1.4.7.jar
      [ERROR] urls[19] = file:/C:/java/maven/repository_test/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar
      [ERROR] urls[20] = file:/C:/java/maven/repository_test/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
      [ERROR] urls[21] = file:/C:/java/maven/repository_test/joda-time/joda-time/2.2/joda-time-2.2.jar
      [ERROR] urls[22] = file:/C:/java/maven/repository_test/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
      [ERROR] urls[23] = file:/C:/java/maven/repository_test/org/sonatype/sisu/siesta/siesta-client/1.7/siesta-client-1.7.jar
      [ERROR] urls[24] = file:/C:/java/maven/repository_test/org/sonatype/sisu/siesta/siesta-common/1.7/siesta-common-1.7.jar
      [ERROR] urls[25] = file:/C:/java/maven/repository_test/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar
      [ERROR] urls[26] = file:/C:/java/maven/repository_test/com/sun/jersey/jersey-core/1.17.1/jersey-core-1.17.1.jar
      [ERROR] urls[27] = file:/C:/java/maven/repository_test/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
      [ERROR] urls[28] = file:/C:/java/maven/repository_test/com/sun/jersey/jersey-client/1.17.1/jersey-client-1.17.1.jar
      [ERROR] urls[29] = file:/C:/java/maven/repository_test/com/sun/jersey/contribs/jersey-apache-client4/1.17.1/jersey-apache-client4-1.17.1.jar
      [ERROR] urls[30] = file:/C:/java/maven/repository_test/org/sonatype/sisu/siesta/siesta-jackson/1.7/siesta-jackson-1.7.jar
      [ERROR] urls[31] = file:/C:/java/maven/repository_test/com/fasterxml/jackson/core/jackson-annotations/2.3.1/jackson-annotations-2.3.1.jar
      [ERROR] urls[32] = file:/C:/java/maven/repository_test/com/fasterxml/jackson/core/jackson-core/2.3.1/jackson-core-2.3.1.jar
      [ERROR] urls[33] = file:/C:/java/maven/repository_test/com/fasterxml/jackson/core/jackson-databind/2.3.1/jackson-databind-2.3.1.jar
      [ERROR] urls[34] = file:/C:/java/maven/repository_test/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.3.1/jackson-jaxrs-json-provider-2.3.1.jar
      [ERROR] urls[35] = file:/C:/java/maven/repository_test/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.3.1/jackson-jaxrs-base-2.3.1.jar
      [ERROR] urls[36] = file:/C:/java/maven/repository_test/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.3.1/jackson-module-jaxb-annotations-2.3.1.jar
      [ERROR] urls[37] = file:/C:/java/maven/repository_test/org/apache/httpcomponents/httpclient/4.3.5/httpclient-4.3.5.jar
      [ERROR] urls[38] = file:/C:/java/maven/repository_test/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
      [ERROR] urls[39] = file:/C:/java/maven/repository_test/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
      [ERROR] urls[40] = file:/C:/java/maven/repository_test/org/slf4j/jcl-over-slf4j/1.7.7/jcl-over-slf4j-1.7.7.jar
      [ERROR] urls[41] = file:/C:/java/maven/repository_test/commons-beanutils/commons-beanutils-core/1.8.3/commons-beanutils-core-1.8.3.jar
      [ERROR] urls[42] = file:/C:/java/maven/repository_test/org/slf4j/slf4j-simple/1.7.7/slf4j-simple-1.7.7.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR]
      [ERROR] -----------------------------------------------------: org.slf4j.helpers.MarkerIgnoringBase
      [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/PluginContainerException
      

      This plugin works just fine with Maven version 3.2.5.

        Attachments

          Activity

            People

            • Assignee:
              cstamas Tamás Cservenák
              Reporter:
              metron-aviation-01 Miro Lehky
              Last Updated By:
              Tamás Cservenák
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: