You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2021/12/20 20:49:00 UTC

[jira] [Updated] (SUREFIRE-1951) Required class missing (TestSetFailedException). Need to add dependency explicilty.

     [ https://issues.apache.org/jira/browse/SUREFIRE-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Slawomir Jaranowski updated SUREFIRE-1951:
------------------------------------------
    Labels: waiting-for-feedback  (was: )

> Required class missing (TestSetFailedException). Need to add dependency explicilty.
> -----------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1951
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1951
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin
>    Affects Versions: 3.0.0-M5
>            Reporter: Chanseok Oh
>            Priority: Major
>              Labels: waiting-for-feedback
>
> Getting the following error when upgrading from 3.0.0-M4 to 3.0.0-M5.
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:integration-test (default) on project bigtable-beam-import: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:integration-test failed: A required class was missing while executing org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:integration-test: org/apache/maven/surefire/api/testset/TestSetFailedException
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    plugin>org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = file:/root/.m2/repository/org/apache/maven/plugins/maven-failsafe-plugin/3.0.0-M5/maven-failsafe-plugin-3.0.0-M5.jar
> [ERROR] urls[1] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-junit47/3.0.0-M4/surefire-junit47-3.0.0-M4.jar
> [ERROR] urls[2] = file:/root/.m2/repository/org/apache/maven/surefire/common-junit48/3.0.0-M4/common-junit48-3.0.0-M4.jar
> [ERROR] urls[3] = file:/root/.m2/repository/org/apache/maven/surefire/common-junit4/3.0.0-M4/common-junit4-3.0.0-M4.jar
> [ERROR] urls[4] = file:/root/.m2/repository/org/apache/maven/surefire/common-junit3/3.0.0-M4/common-junit3-3.0.0-M4.jar
> [ERROR] urls[5] = file:/root/.m2/repository/org/apache/maven/surefire/common-java5/3.0.0-M4/common-java5-3.0.0-M4.jar
> [ERROR] urls[6] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-grouper/3.0.0-M4/surefire-grouper-3.0.0-M4.jar
> [ERROR] urls[7] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-api/3.0.0-M4/surefire-api-3.0.0-M4.jar
> [ERROR] urls[8] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-logger-api/3.0.0-M4/surefire-logger-api-3.0.0-M4.jar
> [ERROR] urls[9] = file:/root/.m2/repository/org/apache/maven/surefire/maven-surefire-common/3.0.0-M5/maven-surefire-common-3.0.0-M5.jar
> [ERROR] urls[10] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-extensions-api/3.0.0-M5/surefire-extensions-api-3.0.0-M5.jar
> [ERROR] urls[11] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-booter/3.0.0-M5/surefire-booter-3.0.0-M5.jar
> [ERROR] urls[12] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-extensions-spi/3.0.0-M5/surefire-extensions-spi-3.0.0-M5.jar
> [ERROR] urls[13] = file:/root/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.11.0/maven-artifact-transfer-0.11.0.jar
> [ERROR] urls[14] = file:/root/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.1.0/maven-common-artifact-filters-3.1.0.jar
> [ERROR] urls[15] = file:/root/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar
> [ERROR] urls[16] = file:/root/.m2/repository/org/codehaus/plexus/plexus-java/1.0.5/plexus-java-1.0.5.jar
> [ERROR] urls[17] = file:/root/.m2/repository/org/ow2/asm/asm/7.2/asm-7.2.jar
> [ERROR] urls[18] = file:/root/.m2/repository/com/thoughtworks/qdox/qdox/2.0-M9/qdox-2.0-M9.jar
> [ERROR] urls[19] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-shared-utils/3.0.0-M4/surefire-shared-utils-3.0.0-M4.jar
> [ERROR] urls[20] = file:/root/.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>com.google.cloud.bigtable:bigtable-client-parent:2.0.0-beta2-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
> [ERROR]
> [ERROR] -----------------------------------------------------: org.apache.maven.surefire.api.testset.TestSetFailedException
> I have to manually add the following {{surefire-api}} dependency:
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>3.0.0-M5</version>
>           <configuration>
>             <trimStackTrace>false</trimStackTrace>
>           </configuration>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-failsafe-plugin</artifactId>
>           <version>3.0.0-M5</version>
>           <configuration>
>             <trimStackTrace>false</trimStackTrace>
>           </configuration>
>           <dependencies>
>             <dependency>
>               *<!-- I need to add this dependency -->*
>               *<groupId>org.apache.maven.surefire</groupId>*
>               *<artifactId>surefire-api</artifactId>*
>               *<version>3.0.0-M5</version>*
>             </dependency>
>           </dependencies>
>         </plugin>
> FYI, this is in the {{<pluginManagement>}} block.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)