maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Read (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (SUREFIRE-61) Incorrect classpath ordering
Date Wed, 06 Jun 2007 13:25:59 GMT

    [ http://jira.codehaus.org/browse/SUREFIRE-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98614
] 

Matt Read commented on SUREFIRE-61:
-----------------------------------

2.4-SNAPSHOT gives me the opposite result, i.e. target/class first, then target/test-classes,
then dependencies. As does 2.3.

I have attached output of the following commands:

mvn archetype:create -DgroupId=test -DartifactId=classpath_test -DarchetypeArtifactId=maven-archetype-quickstart
cd classpath_test
mvn -X test > output.log

Note this bit:

[DEBUG] Test Classpath :
[DEBUG]   C:\TEMP\a_directory_of_my_choosing\classpath_test\target\classes
[DEBUG]   C:\TEMP\a_directory_of_my_choosing\classpath_test\target\test-classes
[DEBUG]   C:\data\sandbox\maven2\repo\junit\junit\3.8.1\junit-3.8.1.jar



> Incorrect classpath ordering
> ----------------------------
>
>                 Key: SUREFIRE-61
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-61
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 3.x support
>    Affects Versions: 2.0 (2.2 plugin)
>         Environment: maven2.0.4, sun-jdk-1.5.0.09, maven-surefire-plugin 2.2, surefire
2.0, gentoo linux x86
>            Reporter: Martin Vysny
>            Priority: Critical
>             Fix For: 2.4
>
>         Attachments: my-app.zip, output.log, SUREFIRE61_barrettas_surefire_surefire-booter_for_rev_489098.patch
>
>
> Surefire incorrectly interprets classpath ordering.
> Steps to reproduce: 
> 1. unzip my-app.zip - it's a simple mvn project created with
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> and lightly patched 
> 2. mvn test
> in my case, it prints out
> jar:file:/home/vyzivus/.m2/repository/jxta/jxta/2.0/jxta-2.0.jar!/log4j.properties
> jar:file:/home/vyzivus/.m2/repository/jxta/jxta/2.0/jxta-2.0.jar!/log4j.properties
> which is incorrect. log4j.properties is located both in jxta.jar and src/test/resources,
but I think that src/test/resources takes precedence over jxta. This ordering is set correctly
in surefire36745tmp file I think, but surefire seems to ignore the ordering.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message