You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andreas Rudolf <ar...@gmx.com> on 2006/05/23 15:28:20 UTC

[m2]Surefire: classesDirectory not added to test classpath in forking

Hi,

since surefire 2.2 <classesDirectory>  in forking lifecycle isn't used. 
It appears not in the Test classpath.
Is it a bug, or do I miss something?

Best regards

Andreas

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' -->
[DEBUG]   (f) basedir = c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin
[DEBUG]   (f) childDelegation = true
[DEBUG]   (f) classesDirectory =
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\emma\data
[DEBUG]   (f) classpathElements =
[c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\classes,
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\test-classes,
c:\dev\.m2\repository\org\codehaus\plexus\plexus-utils\1.0.4\plexus-utils-1.0.4.jar,
c:\dev\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar,
c:\dev\.m2\repository\org\apache\maven\maven-model\2.0\maven-model-2.0.jar,
c:\dev\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar,
c:\dev\.m2\repository\org\apache\maven\maven-profile\2.0\maven-profile-2.0.jar,
c:\dev\.m2\repository\oro\oro\2.0.7\oro-2.0.7.jar,
c:\dev\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar,
c:\dev\.m2\repository\doxia\doxia-core\1.0-alpha-4\doxia-core-1.0-alpha-4.jar,
c:\dev\.m2\repository\qdox\qdox\1.5\qdox-1.5.jar,
c:\dev\.m2\repository\org\apache\maven\maven-repository-metadata\2.0\maven-repository-metadata-2.0.jar,
c:\dev\.m2\repository\org\testng\testng\4.7\testng-4.7-jdk15.jar,
c:\dev\.m2\repository\commons-validator\commons-validator\1.1.4\commons-validator-1.1.4.jar,
c:\dev\.m2\repository\org\apache\maven\maven-artifact-manager\2.0\maven-artifact-manager-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-alpha-5\wagon-provider-api-1.0-alpha-5.jar,
c:\dev\.m2\repository\org\apache\maven\maven-project\2.0\maven-project-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\reporting\maven-reporting-api\2.0\maven-reporting-api-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-api-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\maven-artifact\2.0\maven-artifact-2.0.jar,
c:\dev\.m2\repository\doxia\doxia-sink-api\1.0-alpha-4\doxia-sink-api-1.0-alpha-4.jar,
c:\dev\.m2\repository\org\apache\maven\reporting\maven-reporting-impl\2.0\maven-reporting-impl-2.0.jar,
c:\dev\.m2\repository\bsh\bsh\2.0b1\bsh-2.0b1.jar]
[DEBUG]   (f) disableXmlReport = false
[DEBUG]   (f) forkMode = always
[DEBUG]   (f) jvm = java
[DEBUG]   (f) localRepository = [local] -> file://c:/dev/.m2/repository
[DEBUG]   (f) parallel = false
[DEBUG]   (f) pluginArtifactMap =
{org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime,
org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.0:runtime,
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:runtime,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime,
org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.0:runtime}
[DEBUG]   (f) printSummary = true
[DEBUG]   (f) projectArtifactMap =
{org.apache.maven:maven-profile=org.apache.maven:maven-profile:jar:2.0:compile,
org.apache.maven:maven-model=org.apache.maven:maven-model:jar:2.0:compile,
org.codehaus.plexus:plexus-container-default=org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:compile,
classworlds:classworlds=classworlds:classworlds:jar:1.1-alpha-2:compile,
org.apache.maven:maven-artifact-manager=org.apache.maven:maven-artifact-manager:jar:2.0:compile,
doxia:doxia-sink-api=doxia:doxia-sink-api:jar:1.0-alpha-4:compile,
org.apache.maven.reporting:maven-reporting-api=org.apache.maven.reporting:maven-reporting-api:jar:2.0:compile,
oro:oro=oro:oro:jar:2.0.7:compile,
org.apache.maven:maven-repository-metadata=org.apache.maven:maven-repository-metadata:jar:2.0:compile,
org.apache.maven.wagon:wagon-provider-api=org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:compile,
qdox:qdox=qdox:qdox:jar:1.5:test,
org.apache.maven.reporting:maven-reporting-impl=org.apache.maven.reporting:maven-reporting-impl:jar:2.0:compile,
org.apache.maven:maven-project=org.apache.maven:maven-project:jar:2.0:compile,
org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.0.4:compile,
commons-validator:commons-validator=commons-validator:commons-validator:jar:1.1.4:compile,
junit:junit=junit:junit:jar:3.8.1:compile,
org.testng:testng=org.testng:testng:jar:jdk15:4.7:test,
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:compile,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:compile,
bsh:bsh=bsh:bsh:jar:2.0b1:test,
doxia:doxia-core=doxia:doxia-core:jar:1.0-alpha-4:compile}
[DEBUG]   (f) remoteRepositories = [[Maven Snapshots] ->
http://snapshots.maven.codehaus.org/maven2/, [Carifin plugins] ->
http://fftlrd3401:8080/maven2/, [central] -> http://repo1.maven.org/maven2]
[DEBUG]   (f) reportFormat = brief
[DEBUG]   (f) reportsDirectory =
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\surefire-reports
[DEBUG]   (f) suiteXmlFiles = [Ljava.io.File;@14b84c7
[DEBUG]   (f) systemProperties = {emma.coverage.out.merge=true,
emma.coverage.out.file=target/emma/coverage.ec}
[DEBUG]   (f) testClassesDirectory =
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\test-classes
[DEBUG]   (f) testFailureIgnore = true
[DEBUG]   (f) testSourceDirectory =
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\src\test\unit\java
[DEBUG]   (f) threadCount = 5
[DEBUG]   (f) trimStackTrace = true
[DEBUG]   (f) useFile = true
[DEBUG] -- end configuration --
[INFO] [surefire:test]
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.0:runtime
(selected for runtime)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:runtime (selected
for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for
runtime)
[DEBUG] Adding to surefire booter test classpath:
c:\dev\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar
[DEBUG] Adding to surefire booter test classpath:
c:\dev\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Adding to surefire booter test classpath:
c:\dev\.m2\repository\org\apache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
[DEBUG] dummy:dummy:jar:1.0 (selected for null)
[DEBUG]   org.apache.maven.surefire:surefire-testng:jar:2.0 (selected for
null)
[DEBUG]     org.testng:testng:jar:jdk15:4.7:compile (selected for compile)
[DEBUG]       qdox:qdox:jar:1.5:runtime (selected for runtime)
[DEBUG]       bsh:bsh:jar:2.0b1:runtime (selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.0:compile (selected
for compile)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected for
compile)
[DEBUG] Adding to surefire test classpath:
c:\dev\.m2\repository\org\apache\maven\surefire\surefire-testng\2.0\surefire-testng-2.0.jar
[DEBUG] Adding to surefire test classpath:
c:\dev\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar
[DEBUG] Adding to surefire test classpath:
c:\dev\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
[DEBUG] Test Classpath :
[DEBUG]   c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\classes
[DEBUG]  
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\test-classes
[DEBUG]  
c:\dev\.m2\repository\org\codehaus\plexus\plexus-utils\1.0.4\plexus-utils-1.0.4.jar
[DEBUG]   c:\dev\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\maven-model\2.0\maven-model-2.0.jar
[DEBUG]  
c:\dev\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\maven-profile\2.0\maven-profile-2.0.jar
[DEBUG]   c:\dev\.m2\repository\oro\oro\2.0.7\oro-2.0.7.jar
[DEBUG]  
c:\dev\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
[DEBUG]  
c:\dev\.m2\repository\doxia\doxia-core\1.0-alpha-4\doxia-core-1.0-alpha-4.jar
[DEBUG]   c:\dev\.m2\repository\qdox\qdox\1.5\qdox-1.5.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\maven-repository-metadata\2.0\maven-repository-metadata-2.0.jar
[DEBUG]   c:\dev\.m2\repository\org\testng\testng\4.7\testng-4.7-jdk15.jar
[DEBUG]  
c:\dev\.m2\repository\commons-validator\commons-validator\1.1.4\commons-validator-1.1.4.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\maven-artifact-manager\2.0\maven-artifact-manager-2.0.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-alpha-5\wagon-provider-api-1.0-alpha-5.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\maven-project\2.0\maven-project-2.0.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\reporting\maven-reporting-api\2.0\maven-reporting-api-2.0.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-api-2.0.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\maven-artifact\2.0\maven-artifact-2.0.jar
[DEBUG]  
c:\dev\.m2\repository\doxia\doxia-sink-api\1.0-alpha-4\doxia-sink-api-1.0-alpha-4.jar
[DEBUG]  
c:\dev\.m2\repository\org\apache\maven\reporting\maven-reporting-impl\2.0\maven-reporting-impl-2.0.jar
[DEBUG]   c:\dev\.m2\repository\bsh\bsh\2.0b1\bsh-2.0b1.jar
[DEBUG] Setting system property [emma.coverage.out.merge]=[true]
[DEBUG] Setting system property
[emma.coverage.out.file]=[target/emma/coverage.ec]
[DEBUG] Setting system property [localRepository]=[c:/dev/.m2/repository]
[DEBUG] Setting system property
[basedir]=[c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin]
[INFO] Surefire report directory:
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\surefire-reports
Forking command line: java -classpath
c:\dev\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;c:\dev\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;c:\dev\.m2\repository\org\apache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
org.apache.maven.surefire.booter.SurefireBooter
c:\DOCUME~1\rudolfa\LOCALS~1\Temp\surefire18047tmp
c:\DOCUME~1\rudolfa\LOCALS~1\Temp\surefire18048tmp

--
View this message in context: http://www.nabble.com/-m2-Surefire%3A+classesDirectory+not+added+to+test+classpath+in+forking-t1668943.html#a4522963
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org