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

Surefire does not respect or implement additonalClasspathElements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.14.1
    • None
    • classloading
    • None
    • mvn -e -X -o -Dmaven.test.
      additionalClasspath=C:\Users\mgainty\org\apache\maven\surefire\maven-surefire-co
      mmon\2.9\maven-surefire-common-2.9.jar package

    Description

      <plugin>
      <groupId>org.apache.maven.surefire</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.9</version>
      <configuration>
      <useSystemClassLoader>true</useSystemClassLoader> <additionalClasspathElements>C:\Users\mgainty\org\apache\maven\surefire\maven-surefire-common\2.9\maven-surefire-common-2.9.jar</additionalClasspathElements>
      </configuration>
      </plugin>

      LOG

      mavenPluginPluginVersion=3.1, user.dir=C:\maven-plugin\maven-war-plugin\maven-war-plugin-2.3, env.CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher,
      classworlds.conf=C:\Maven\apache-maven-3.0.2\bin\m2.conf, java.endorsed.dirs=C:\Java\1664\lib\endorsed, env.USERNAME=mgainty, mavenArchiverVersion=2.5,
      env.MAVEN_CMD_LINE_ARGS=-e -X -o -Dmaven.test.additionalClasspath=C:\Users\mgainty\org\apache\maven\surefire\maven-surefire-common\2.9\maven-surefire-common-2.9.jar

      RESULT:
      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test failed: Unable to load the mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.9'. A required class is missing: org/apache/maven/plugin/surefire/AbstractSurefireMojo

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgainty Martin Gainty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: