You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jan Palmquist (JIRA)" <ji...@codehaus.org> on 2006/05/12 15:28:41 UTC

[jira] Created: (MSUREFIRE-108) Test-resources not on top of classpath while running tests

Test-resources not on top of classpath while running tests
----------------------------------------------------------

         Key: MSUREFIRE-108
         URL: http://jira.codehaus.org/browse/MSUREFIRE-108
     Project: Maven 2.x Surefire Plugin
        Type: Bug

    Versions: 2.2    
    Reporter: Jan Palmquist


Fix of bug [MSUREFIRE-74] seem to have introduced a classpath error not loading target/test-classes before target/classes on classpath.

test-classes need to be on classpath before classes in order for test/resources to have precedence over main/resources.

Any resources having the same name (eg configuration files) now seem to be loaded from main/resources instead of test/resources.

Debug output from build:
...
[DEBUG] maven-surefire-plugin: resolved to version 2.2-SNAPSHOT from repository central
[DEBUG] maven-surefire-plugin: resolved to version 2.2-20060507.223157-4 from repository central
...
[DEBUG]  C:\myproj\target\classes
[DEBUG]  C:\myproj\target\test-classes
[DEBUG]  C:\Documents and Settings\jan\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG]  C:\Documents and Settings\jan\.m2\repository\relaxngDatatype\relaxngDatatype\20020414\relaxngDatatype-20020414.jar
aso...


-- 
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


[jira] Closed: (MSUREFIRE-108) Test-resources not on top of classpath while running tests

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-108?page=all ]
     
Brett Porter closed MSUREFIRE-108:
----------------------------------

     Assign To: Brett Porter
    Resolution: Duplicate

> Test-resources not on top of classpath while running tests
> ----------------------------------------------------------
>
>          Key: MSUREFIRE-108
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-108
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Versions: 2.2
>     Reporter: Jan Palmquist
>     Assignee: Brett Porter

>
>
> Fix of bug [MSUREFIRE-74] seem to have introduced a classpath error not loading target/test-classes before target/classes on classpath.
> test-classes need to be on classpath before classes in order for test/resources to have precedence over main/resources.
> Any resources having the same name (eg configuration files) now seem to be loaded from main/resources instead of test/resources.
> Debug output from build:
> ...
> [DEBUG] maven-surefire-plugin: resolved to version 2.2-SNAPSHOT from repository central
> [DEBUG] maven-surefire-plugin: resolved to version 2.2-20060507.223157-4 from repository central
> ...
> [DEBUG]  C:\myproj\target\classes
> [DEBUG]  C:\myproj\target\test-classes
> [DEBUG]  C:\Documents and Settings\jan\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
> [DEBUG]  C:\Documents and Settings\jan\.m2\repository\relaxngDatatype\relaxngDatatype\20020414\relaxngDatatype-20020414.jar
> aso...

-- 
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


[jira] Updated: (SUREFIRE-193) Test-resources not on top of classpath while running tests

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-193:
----------------------------------

    Affects Version/s: 2.0 (2.2 plugin)

> Test-resources not on top of classpath while running tests
> ----------------------------------------------------------
>
>                 Key: SUREFIRE-193
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-193
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.0 (2.2 plugin)
>            Reporter: Jan Palmquist
>         Assigned To: Brett Porter
>
> Fix of bug [MSUREFIRE-74] seem to have introduced a classpath error not loading target/test-classes before target/classes on classpath.
> test-classes need to be on classpath before classes in order for test/resources to have precedence over main/resources.
> Any resources having the same name (eg configuration files) now seem to be loaded from main/resources instead of test/resources.
> Debug output from build:
> ...
> [DEBUG] maven-surefire-plugin: resolved to version 2.2-SNAPSHOT from repository central
> [DEBUG] maven-surefire-plugin: resolved to version 2.2-20060507.223157-4 from repository central
> ...
> [DEBUG]  C:\myproj\target\classes
> [DEBUG]  C:\myproj\target\test-classes
> [DEBUG]  C:\Documents and Settings\jan\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
> [DEBUG]  C:\Documents and Settings\jan\.m2\repository\relaxngDatatype\relaxngDatatype\20020414\relaxngDatatype-20020414.jar
> aso...

-- 
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

        

[jira] Moved: (SUREFIRE-193) Test-resources not on top of classpath while running tests

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MSUREFIRE-108 to SUREFIRE-193:
-------------------------------------------------

    Affects Version/s:     (was: 2.0 (2.2 plugin))
                  Key: SUREFIRE-193  (was: MSUREFIRE-108)
              Project: Maven Surefire  (was: Maven 2.x Surefire Plugin)

> Test-resources not on top of classpath while running tests
> ----------------------------------------------------------
>
>                 Key: SUREFIRE-193
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-193
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Jan Palmquist
>         Assigned To: Brett Porter
>
> Fix of bug [MSUREFIRE-74] seem to have introduced a classpath error not loading target/test-classes before target/classes on classpath.
> test-classes need to be on classpath before classes in order for test/resources to have precedence over main/resources.
> Any resources having the same name (eg configuration files) now seem to be loaded from main/resources instead of test/resources.
> Debug output from build:
> ...
> [DEBUG] maven-surefire-plugin: resolved to version 2.2-SNAPSHOT from repository central
> [DEBUG] maven-surefire-plugin: resolved to version 2.2-20060507.223157-4 from repository central
> ...
> [DEBUG]  C:\myproj\target\classes
> [DEBUG]  C:\myproj\target\test-classes
> [DEBUG]  C:\Documents and Settings\jan\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
> [DEBUG]  C:\Documents and Settings\jan\.m2\repository\relaxngDatatype\relaxngDatatype\20020414\relaxngDatatype-20020414.jar
> aso...

-- 
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