[ https://issues.apache.org/jira/browse/SUREFIRE-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Danninger updated SUREFIRE-1286: ------------------------------------------ Attachment: SUREFIRE-1286.zip Classpath with version 2.18.1 (see ./integration-test/target/surefire/surefire3169330474250736206tmp - file name may differ from yours) {code} #surefire #Tue Oct 04 14:01:53 CEST 2016 tc.0=demo.TestIT classPathUrl.0=/Users/christian.danninger/Documents/workspace-lib/pom-1286/integration-test/target/classes classPathUrl.1=/Users/christian.danninger/Documents/workspace-lib/pom-1286/integration-test/target/classes {code} Classpath with version 2.19.1 {code} #surefire #Tue Oct 04 14:04:33 CEST 2016 tc.0=demo.TestIT classPathUrl.0=/Users/christian.danninger/Documents/workspace-lib/pom-1286/integration-test/target/classes classPathUrl.1=/Users/christian.danninger/Documents/workspace-lib/pom-1286/integration-test/target/integration-test-0.0.1-SNAPSHOT.jar {code} Run it from command line with mvn clean integration-test -DskipITs=false -X In the second case the class is in both the folder integration-test/target/classes and integration-test/target/integration-test-0.0.1-SNAPSHOT.jar which confuses my CDI implementation (Weld) [~tibor17] > Failsafe - duplicate class in classpath (in JAR and target/classes) > ------------------------------------------------------------------- > > Key: SUREFIRE-1286 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1286 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Failsafe Plugin > Affects Versions: 2.19.1 > Environment: Maven 3.3.9 > Java 8 > Reporter: Christian Danninger > Assignee: Tibor Digana > Fix For: 2.18.1 > > Attachments: SUREFIRE-1286.zip > > > I'm not sure if it is releated to SUREFIRE-855. But with version 2.19.1 I got > a class twice on my classpath (work fine with version 2.18.1). One in the > maven module JAR and one in target/classes. This is an issue due the fact I'm > using CDI (WELD). > This is was my classpath is looking like (taken from > integration-test/target/surefire/surefire5166061968440405040tmp): > {code}#surefire > #Wed Sep 28 15:54:06 CEST 2016 > tc.1=x.productdb.client.v2.ProductDBClientSolrImplTestIT > tc.0=x.productdb.client.v2.HotelDataSolrImplTestIT > classPathUrl.0=/Users/xxx/dev/git/lib/xx/integration-test/target/classes > classPathUrl.1=/Users/xxx/dev/git/lib/xx/integration-test/target/integration-test-2.0.0-SNAPSHOT.jar > {code} > Location of TestSolrConfiguration.class: > ./target/integration-test-2.0.0-SNAPSHOT.jar > ./target/classes/de/comvel/productdb/test/TestSolrConfiguration.class -- This message was sent by Atlassian JIRA (v6.3.4#6332)