3 Replies Latest reply on Aug 10, 2015 4:59 AM by Anton Hughes

    Error when trying to use SDM - seems to be trying to use gwt maven 2.8

    Anton Hughes Master

      Hi

       

      When I try to debug in Errai 3.2.0-Final, I get the following. Notice that it is trying to use gwt-maven-plugin:2.8.0.20150603 - yet in my pom I have clearly specified that it should 2.7.

       

      [INFO] ------------------------------------------------------------------------

      [INFO] Building app.ui 2.3.4-SNAPSHOT

      [INFO] ------------------------------------------------------------------------

      [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

      [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0

      [WARNING] The POM for org.jboss.logging:jboss-logging:jar:3.1.4.GA-redhat-1 is missing, no dependency information available

      [INFO]

      [INFO] --- maven-clean-plugin:2.6:clean (default-clean) @ app.ui ---

      [INFO] Deleting /home/anton/git/app.ui/target

      [INFO]

      [INFO] >>> gwt-maven-plugin:2.8.0.20150603:debug (default-cli) @ app.ui >>>

      [INFO]

      [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ app.ui ---

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

      [INFO] Copying 24 resources

      [INFO]

      [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ app.ui ---

      [INFO] Compiling 3982 source files to /home/anton/git/app.ui/target/classes

      [INFO]

      [INFO] <<< gwt-maven-plugin:2.8.0.20150603:debug (default-cli) @ app.ui <<<

      [INFO]

      [INFO] --- gwt-maven-plugin:2.8.0.20150603:debug (default-cli) @ app.ui ---

      Aug 06, 2015 4:46:11 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn

      WARNING: Error injecting: org.codehaus.mojo.gwt.shell.DebugMojo

      java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

        at java.lang.Class.getDeclaredConstructors0(Native Method)

        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2595)

        at java.lang.Class.getDeclaredConstructors(Class.java:1914)

        at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)

        at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:98)

        at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:654)

        at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:856)

        at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:783)

        at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:279)

        at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:211)

        at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:979)

        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1012)

        at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:975)

        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1025)

        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)

        at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)

        at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)

        at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)

        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)

        at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)

        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)

        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)

        at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)

        at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)

        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:990)

        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1036)

        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:986)

        at com.google.inject.Scopes$1$1.get(Scopes.java:59)

        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)

        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)

        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)

        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)

        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)

        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

        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:84)

        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        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.codehaus.plexus.util.xml.XmlStreamReader

        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)

        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)

        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)

        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)

        ... 54 more

       

       

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 15.997s

      [INFO] Finished at: Thu Aug 06 16:46:11 CEST 2015

      [INFO] Final Memory: 72M/1195M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0.20150603:debug (default-cli) on project app.ui: Execution default-cli of goal org.codehaus.mojo:gwt-maven-plugin:2.8.0.20150603:debug failed: A required class was missing while executing org.codehaus.mojo:gwt-maven-plugin:2.8.0.20150603:debug: org/codehaus/plexus/util/xml/XmlStreamReader

      [ERROR] -----------------------------------------------------

      [ERROR] realm =    plugin>org.codehaus.mojo:gwt-maven-plugin:2.8.0.20150603

      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

      [ERROR] urls[0] = file:/home/anton/.m2/repository/org/codehaus/mojo/gwt-maven-plugin/2.8.0.20150603/gwt-maven-plugin-2.8.0.20150603.jar

      [ERROR] urls[1] = file:/home/anton/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

      [ERROR] Number of foreign imports: 1

      [ERROR] import: Entry[import  from realm ClassRealm[project>nu.magick:app.ui:2.3.4-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]

      [ERROR]

      [ERROR] -----------------------------------------------------: org.codehaus.plexus.util.xml.XmlStreamReader

      [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

      anton@Charles:~/git/app.ui$

        • 1. Re: Error when trying to use SDM - seems to be trying to use gwt maven 2.8
          Cristian Miranda Newbie

          Hi guys,

           

          I'm experiencing the same issue when trying to upgrade to Errai 3.2.

           

          Any updates on this?

          • 2. Re: Error when trying to use SDM - seems to be trying to use gwt maven 2.8
            Christian Sadilek Master

            Guys,

             

            Errai doesn't define a dependency on the gwt-maven-plugin 2.8.0. So, I would assume it's your project configuration that causes this somehow.

             

            Running mvn dependency:resolve-plugins will tell you where this dependency is coming from.

             

            Cheers,

            Christian

            • 3. Re: Error when trying to use SDM - seems to be trying to use gwt maven 2.8
              Anton Hughes Master

              Thanks Christian

               

              Ive tried running the command you suggested, however it did not reveal the offending dependency. Interestingly I see others are having the same problem - Anyone run into this problem yet?A required class was missing while executing…

               

              [INFO] ------------------------------------------------------------------------

              [INFO]

              [INFO] --- maven-dependency-plugin:2.1:resolve-plugins (default-cli) @ app.ui ---

              [INFO] Plugin Resolved: gwt-maven-plugin-2.7.0.jar

              [INFO]     Plugin Dependency Resolved: maven-compat-3.0.5.jar

              [INFO]     Plugin Dependency Resolved: maven-core-3.0.5.jar

              [INFO]     Plugin Dependency Resolved: maven-model-3.0.5.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-3.0.5.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-3.0.5.jar

              [INFO]     Plugin Dependency Resolved: maven-reporting-api-3.0.jar

              [INFO]     Plugin Dependency Resolved: maven-reporting-impl-2.1.jar

              [INFO]     Plugin Dependency Resolved: plexus-container-default-1.5.5.jar

              [INFO]     Plugin Dependency Resolved: doxia-sink-api-1.6.jar

              [INFO]     Plugin Dependency Resolved: doxia-site-renderer-1.6.jar

              [INFO]     Plugin Dependency Resolved: spring-core-3.0.5.RELEASE.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-3.0.18.jar

              [INFO]     Plugin Dependency Resolved: qdox-1.12.1.jar

              [INFO]     Plugin Dependency Resolved: freemarker-2.3.20.jar

              [INFO]     Plugin Dependency Resolved: gwt-dev-2.7.0.jar

              [INFO]     Plugin Dependency Resolved: gwt-user-2.7.0.jar

              [INFO]     Plugin Dependency Resolved: plexus-archiver-2.6.3.jar

              [INFO]     Plugin Dependency Resolved: maven-archiver-2.5.jar

              [INFO]     Plugin Dependency Resolved: junit-4.11.jar

              [INFO]     Plugin Dependency Resolved: surefire-booter-2.4.3.jar

              [INFO]     Plugin Dependency Resolved: surefire-api-2.4.3.jar

              [INFO]     Plugin Dependency Resolved: commons-io-2.4.jar

              [INFO]     Plugin Dependency Resolved: commons-lang-2.6.jar

              [INFO]     Plugin Dependency Resolved: jdom-1.1.3.jar

              [INFO]     Plugin Dependency Resolved: jaxen-1.1.1.jar

              [INFO]     Plugin Dependency Resolved: icu4j-3.4.4.jar

              [INFO]     Plugin Dependency Resolved: xercesImpl-2.10.0.jar

              [INFO]     Plugin Dependency Resolved: plexus-classworlds-2.5.2.jar

              [INFO]     Plugin Dependency Resolved: plexus-compiler-api-2.3.jar

              [INFO]     Plugin Dependency Resolved: plexus-build-api-0.0.7.jar

              [INFO]     Plugin Dependency Resolved: plexus-compiler-javac-2.3.jar

              [INFO] Plugin Resolved: maven-site-plugin-3.0.jar

              [INFO]     Plugin Dependency Resolved: maven-reporting-exec-1.0.1.jar

              [INFO]     Plugin Dependency Resolved: maven-core-3.0.jar

              [INFO]     Plugin Dependency Resolved: maven-model-3.0.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-3.0.jar

              [INFO]     Plugin Dependency Resolved: maven-settings-3.0.jar

              [INFO]     Plugin Dependency Resolved: maven-settings-builder-3.0.jar

              [INFO]     Plugin Dependency Resolved: doxia-sink-api-1.2.jar

              [INFO]     Plugin Dependency Resolved: doxia-logging-api-1.2.jar

              [INFO]     Plugin Dependency Resolved: doxia-core-1.2.jar

              [INFO]     Plugin Dependency Resolved: doxia-module-xhtml-1.2.jar

              [INFO]     Plugin Dependency Resolved: doxia-module-apt-1.2.jar

              [INFO]     Plugin Dependency Resolved: doxia-module-xdoc-1.2.jar

              [INFO]     Plugin Dependency Resolved: doxia-module-fml-1.2.jar

              [INFO]     Plugin Dependency Resolved: servlet-api-2.5.jar

              [INFO]     Plugin Dependency Resolved: doxia-decoration-model-1.2.jar

              [INFO]     Plugin Dependency Resolved: doxia-site-renderer-1.2.jar

              [INFO]     Plugin Dependency Resolved: maven-doxia-tools-1.4.jar

              [INFO]     Plugin Dependency Resolved: wagon-provider-api-1.0.jar

              [INFO]     Plugin Dependency Resolved: plexus-archiver-1.0.jar

              [INFO]     Plugin Dependency Resolved: plexus-i18n-1.0-beta-7.jar

              [INFO]     Plugin Dependency Resolved: plexus-velocity-1.1.8.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-1.5.10.jar

              [INFO]     Plugin Dependency Resolved: jetty-6.1.25.jar

              [INFO]     Plugin Dependency Resolved: jetty-util-6.1.25.jar

              [INFO]     Plugin Dependency Resolved: commons-lang-2.5.jar

              [INFO]     Plugin Dependency Resolved: commons-io-1.4.jar

              [INFO] Plugin Resolved: maven-install-plugin-2.3.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-project-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-model-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-manager-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-1.5.6.jar

              [INFO]     Plugin Dependency Resolved: plexus-digest-1.0.jar

              [INFO] Plugin Resolved: maven-compiler-plugin-3.1.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.9.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-2.0.9.jar

              [INFO]     Plugin Dependency Resolved: maven-core-2.0.9.jar

              [INFO]     Plugin Dependency Resolved: maven-toolchain-1.0.jar

              [INFO]     Plugin Dependency Resolved: maven-shared-utils-0.1.jar

              [INFO]     Plugin Dependency Resolved: maven-shared-incremental-1.1.jar

              [INFO]     Plugin Dependency Resolved: plexus-compiler-api-2.2.jar

              [INFO]     Plugin Dependency Resolved: plexus-compiler-manager-2.2.jar

              [INFO]     Plugin Dependency Resolved: plexus-compiler-javac-2.2.jar

              [INFO]     Plugin Dependency Resolved: plexus-container-default-1.5.5.jar

              [INFO] Plugin Resolved: minify-maven-plugin-1.7.2.jar

              [INFO]     Plugin Dependency Resolved: yuicompressor-2.4.7.jar

              [INFO]     Plugin Dependency Resolved: closure-compiler-v20130823.jar

              [INFO] Plugin Resolved: maven-clean-plugin-2.4.1.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-2.0.5.jar

              [INFO] Plugin Resolved: maven-resources-plugin-2.3.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-project-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-1.5.6.jar

              [INFO]     Plugin Dependency Resolved: maven-filtering-1.0-beta-2.jar

              [INFO] Plugin Resolved: maven-surefire-plugin-2.14.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.9.jar

              [INFO]     Plugin Dependency Resolved: maven-surefire-common-2.14.jar

              [INFO]     Plugin Dependency Resolved: surefire-api-2.14.jar

              [INFO]     Plugin Dependency Resolved: maven-toolchain-2.0.9.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-annotations-3.2.jar

              [INFO] Plugin Resolved: maven-antrun-plugin-1.7.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.11.jar

              [INFO]     Plugin Dependency Resolved: maven-project-2.0.11.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-2.0.11.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-2.0.5.jar

              [INFO]     Plugin Dependency Resolved: ant-1.8.2.jar

              [INFO] Plugin Resolved: maven-war-plugin-2.1.1.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-model-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-project-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-core-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-settings-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-monitor-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-archiver-2.4.1.jar

              [INFO]     Plugin Dependency Resolved: plexus-archiver-1.2.jar

              [INFO]     Plugin Dependency Resolved: plexus-interpolation-1.13.jar

              [INFO]     Plugin Dependency Resolved: plexus-container-default-1.0-alpha-9-stable-1.jar

              [INFO]     Plugin Dependency Resolved: xstream-1.3.1.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-2.0.5.jar

              [INFO]     Plugin Dependency Resolved: maven-filtering-1.0-beta-2.jar

              [INFO] Plugin Resolved: maven-deploy-plugin-2.7.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-project-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-model-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-2.0.6.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-1.5.6.jar

              [INFO] Plugin Resolved: jgitflow-maven-plugin-1.0-m5.1.jar

              [INFO]     Plugin Dependency Resolved: jgit-flow-core-1.0-m5.1.jar

              [INFO]     Plugin Dependency Resolved: jgitflow-maven-api-1.0-m5.1.jar

              [INFO]     Plugin Dependency Resolved: org.eclipse.jgit.console-3.7.1.201504261725-r.jar

              [INFO]     Plugin Dependency Resolved: jline-1.0.jar

              [INFO]     Plugin Dependency Resolved: gson-2.2.2.jar

              [INFO]     Plugin Dependency Resolved: jdom2-2.0.4.jar

              [INFO]     Plugin Dependency Resolved: guava-14.0.1.jar

              [INFO]     Plugin Dependency Resolved: maven-core-2.2.1.jar

              [INFO]     Plugin Dependency Resolved: maven-model-2.2.1.jar

              [INFO]     Plugin Dependency Resolved: maven-plugin-api-2.2.1.jar

              [INFO]     Plugin Dependency Resolved: maven-settings-2.2.1.jar

              [INFO]     Plugin Dependency Resolved: maven-release-manager-2.4.jar

              [INFO]     Plugin Dependency Resolved: plexus-utils-1.5.15.jar

              [INFO]     Plugin Dependency Resolved: maven-artifact-2.2.1.jar

              [INFO]     Plugin Dependency Resolved: plexus-component-annotations-1.5.5.jar

              [INFO]     Plugin Dependency Resolved: jsch.agentproxy.jsch-0.0.7.jar

              [INFO]     Plugin Dependency Resolved: jsch.agentproxy.usocket-jna-0.0.7.jar

              [INFO]     Plugin Dependency Resolved: jsch.agentproxy.sshagent-0.0.7.jar

              [INFO]     Plugin Dependency Resolved: javax.inject-1.jar

              [INFO]     Plugin Dependency Resolved: slf4j-simple-1.7.7.jar

              [INFO] ------------------------------------------------------------------------

              [INFO] BUILD SUCCESS

              [INFO] ------------------------------------------------------------------------