[ 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