Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-643

surefire-plugin does not locate org/apache/maven/surefire/booter/SurefireExecutionException (surefire-booter)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Not A Problem
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: classloading
    • Labels:
      None
    • Environment:

      Description

      [DEBUG] plexus-component-annotations: using locally installed snapshot
      [DEBUG] The following artifacts were filtered out for plugin: org.apache.maven.plugins:maven-surefire-plugin:2.5 because they're already in the core of Maven:

      org.apache.maven:maven-artifact:jar:2.0.6:runtime
      org.apache.maven:maven-project:jar:2.0.6:runtime
      org.apache.maven:maven-core:jar:2.0.6:runtime
      org.apache.maven:maven-toolchain:jar:1.0:runtime

      These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().

      -----------------------------------------------------
      this realm = app0.child-container[org.apache.maven.plugins:maven-surefire-plugin:2.5]
      urls[0] = file:/${user.home}/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.5/maven-surefire-plugin-2.5.jar
      urls[1] = file:/${user.home}/.m2/repository/org/codehaus/plexus/plexus-classworlds/2.2.3-SNAPSHOT/plexus-classworlds-2.2.3-SNAPSHOT.jar
      urls[2] = file:/${user.home}/.m2/repository/org/codehaus/plexus/plexus-repository/1.2-SNAPSHOT/plexus-repository-1.2-SNAPSHOT.jar
      urls[3] = file:/${user.home}/.m2/repository/junit/framework/junit/4.7/junit-4.7.jar
      urls[4] = file:/${user.home}/.m2/repository/org/hamcrest/hamcrest/1.3/hamcrest-1.3.jar
      urls[5] = file:/${user.home}/.m2/repository/org/easymock/easymock/2.5.2/easymock-2.5.2.jar
      urls[6] = file:/${user.home}/.m2/repository/com/thoughtworks/qdox/qdox/1.6.3/qdox-1.6.3.jar
      urls[7] = file:/${user.home}/.m2/repository/ant/ant/1.5.1/ant-1.5.1.jar
      urls[8] = file:/${user.home}/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar
      urls[9] = file:/${user.home}/.m2/repository/jmock/jmock/1.0.0/jmock-1.0.0.jar
      urls[10] = file:/${user.home}/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.1-SNAPSHOT/plexus-component-annotations-1.5.1-SNAPSHOT.jar
      urls[11] = file:/${user.home}/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
      urls[12] = file:/${user.home}/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
      urls[13] = file:/${user.home}/.m2/repository/org/codehaus/plexus/plexus-cli/1.2/plexus-cli-1.2.jar
      urls[14] = file:/${user.home}/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
      urls[15] = file:/${user.home}/.m2/repository/commons-logging/commons-logging/1.0/commons-logging-1.0.jar
      urls[16] = file:/${user.home}/.m2/repository/commons-lang/commons-lang/1.0/commons-lang-1.0.jar
      urls[17] = file:/${user.home}/.m2/repository/asm/asm/3.1/asm-3.1.jar
      urls[18] = file:/${user.home}/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
      urls[19] = file:/${user.home}/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar
      urls[20] = file:/${user.home}/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
      urls[21] = file:/${user.home}/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
      urls[22] = file:/${user.home}/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
      urls[23] = file:/${user.home}/.m2/repository/com/google/code/google-collections/google-collect/1.0/google-collect-1.0.jar
      Number of imports: 10
      import: org.codehaus.classworlds.Entry@a6c57a42
      import: org.codehaus.classworlds.Entry@12f43f3b
      import: org.codehaus.classworlds.Entry@20025374
      import: org.codehaus.classworlds.Entry@f8e44ca4
      import: org.codehaus.classworlds.Entry@92758522
      import: org.codehaus.classworlds.Entry@ebf2705b
      import: org.codehaus.classworlds.Entry@bb25e54
      import: org.codehaus.classworlds.Entry@bece5185
      import: org.codehaus.classworlds.Entry@3fee8e37
      import: org.codehaus.classworlds.Entry@3fee19d8

      this realm = plexus.core
      urls[0] = file:/E:/Maven/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
      Number of imports: 10
      import: org.codehaus.classworlds.Entry@a6c57a42
      import: org.codehaus.classworlds.Entry@12f43f3b
      import: org.codehaus.classworlds.Entry@20025374
      import: org.codehaus.classworlds.Entry@f8e44ca4
      import: org.codehaus.classworlds.Entry@92758522
      import: org.codehaus.classworlds.Entry@ebf2705b
      import: org.codehaus.classworlds.Entry@bb25e54
      import: org.codehaus.classworlds.Entry@bece5185
      import: org.codehaus.classworlds.Entry@3fee8e37
      import: org.codehaus.classworlds.Entry@3fee19d8
      -----------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Unable to load the mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin'. A required class is missing: org/apache/maven/surefire/booter/SurefireExecutionException
      org.apache.maven.surefire.booter.SurefireExecutionException
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Unable to load the mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin'. A required class is missing: org/apache/maven/surefire/booter/SurefireExecutionException
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin'. A required class is missing: org/apache/maven/surefire/booter/SurefireExecutionException
      at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      ... 17 more
      Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-surefire-plugin:2.5:test', it could not be created
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
      at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
      ... 19 more
      Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'null', implementation: 'org.apache.maven.plugin.surefire.SurefirePlugin'
      at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
      at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
      at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
      at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
      at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
      ... 21 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/SurefireExecutionException
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      at java.lang.Class.getConstructor0(Class.java:2699)
      at java.lang.Class.newInstance0(Class.java:326)
      at java.lang.Class.newInstance(Class.java:308)
      at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
      ... 25 more
      Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.SurefireExecutionException
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
      at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
      at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
      at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      ... 31 more

        Attachments

        1. package.lst
          266 kB
          Martin Gainty

          Activity

            People

            • Assignee:
              bentmann Benjamin Bentmann
              Reporter:
              mgainty Martin Gainty
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: