Hi,=20
if I=B4m running JUnit Tests with Surefire-2.4 I got the following=20
classpath:
[DEBUG] Adding managed dependencies for unknown:surefire-junit4
[DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4
[DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.9
[DEBUG] org.apache.maven.surefire:surefire-junit4:jar:2.4:test (selected =
for test)
[DEBUG] junit:junit:jar:4.0:test (selected for test)
[DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4:test (selected=20
for test)
[DEBUG] Adding to surefire test classpath:=20
s:\mavenrepo\org\apache\maven\surefire\surefire-junit4\2.4\surefire-junit4-=
2.4.jar
[DEBUG] Adding to surefire test classpath:=20
s:\mavenrepo\junit\junit\4.0\junit-4.0.jar
[DEBUG] Adding to surefire test classpath:=20
s:\mavenrepo\org\apache\maven\surefire\surefire-api\2.4\surefire-api-2.4.jar
[DEBUG] Test Classpath :
[DEBUG] s:\mavenrepo\log4j\log4j\1.2.13\log4j-1.2.13.jar
[DEBUG] s:\mavenrepo\javax\xml\ws\jaxws-api\2.1\jaxws-api-2.1.jar
[DEBUG] s:\mavenrepo\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar
...
...
[DEBUG] s:\mavenrepo\org\objectstyle\ashwood\ashwood\1.1\ashwood-1.1.jar
[DEBUG]=20
s:\mavenrepo\com\gide\gdcams\pip\gdcams-pip-srv-common\2.7.1-SNAPSHOT\gdcam=
s-pip-srv-common-2.7.1-SNAPSHOT-tests.jar
[DEBUG]=20
s:\mavenrepo\com\gide\gdcams\pip\gdcams-pip-server-ts\2.7.1-SNAPSHOT\gdcams=
-pip-server-ts-2.7.1-SNAPSHOT.jar
[DEBUG] s:\mavenrepo\org\apache\xmlsec\1.4.1\xmlsec-1.4.1.jar
[DEBUG] S:\pdv=5Fcms\GDCAMS\src\pip\gdcams-pip-itest\target\classes
[DEBUG] S:\pdv=5Fcms\GDCAMS\src\pip\gdcams-pip-itest\target\test-classes
As you can see, the classes and test-classes are at the end of the "test=20
classpath", which now causes some problems.
The only thing I changed was the following snippet, added to my own parent =
pom.xml:
<properties>=20
<target.dir>target</target.dir>
</properties>=20
<build>
....
<!-- special (output)Directory for Eclipse -->
<!-- see=20
http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-Howtoconf=
igureMavenprojecttouseseparateoutputfoldersinEclipse--
>
=20
<outputDirectory>${project.basedir}/${target.dir}/classes</outputDirectory>
=20
<testOutputDirectory>${project.basedir}/${target.dir}/test-classes</testOut=
putDirectory>=20
....
</build>
<profiles>
<profile>
<id>eclipse-folders</id>
<properties>
<target.dir>target-eclipse</target.dir>
</properties>
</profile>
</profiles>
Any idea, what=B4s going wrong here ?
Why are the classes and test-classes added to the end of the classpath ?
thanx, Torsten
|