[ 
https://issues.apache.org/jira/browse/SUREFIRE-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15717718#comment-15717718
 ] 

Tibor Digana commented on SUREFIRE-1286:
----------------------------------------

[~cdanninger]
[~cdanningerCV]
[[email protected]]
We are setting {{java.class.path}} system property to what is written in 
{{classPathUrl.0} - {{classPathUrl.1}} in {{surefire3601584721533666311tmp}}. 
Here is the content of Surefire Properties file:

{noformat}
#surefire
#Sat Dec 03 08:28:43 CET 2016
tc.0=demo.TestIT
classPathUrl.0=D\:\\vcs\\github\\maven-surefire\\SUREFIRE-1286.zip\\pom-1286\\integration-test\\target\\test-classes
classPathUrl.1=D\:\\vcs\\github\\maven-surefire\\SUREFIRE-1286.zip\\pom-1286\\integration-test\\target\\integration-test-0.0.1-SNAPSHOT.jar
classPathUrl.2=D\:\\.m2\\repository\\junit\\junit\\4.12\\junit-4.12.jar
classPathUrl.3=D\:\\.m2\\repository\\org\\hamcrest\\hamcrest-core\\1.3\\hamcrest-core-1.3.jar
{noformat}

> 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.19.2
>
>         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)

Reply via email to