[ http://jira.codehaus.org/browse/MSUREFIRE-74?page=all ] Brett Porter closed MSUREFIRE-74: ---------------------------------
Assign To: Brett Porter Resolution: Fixed > IsolatedClassloader.getResources returns duplicated results > ----------------------------------------------------------- > > Key: MSUREFIRE-74 > URL: http://jira.codehaus.org/browse/MSUREFIRE-74 > Project: Maven 2.x Surefire Plugin > Type: Bug > Versions: 2.2 > Reporter: Carlos Sanchez > Assignee: Brett Porter > Fix For: 2.2 > > > When calling classLoader.getResources("org/springframework/core/io") every > result is twice in the resulting enumeration > It doesn't happen in 2.1.3 > It may have to do with the fact that classes and test-classes are twice in > the classpath output > [INFO] [surefire:test] > [DEBUG] dummy:dummy:jar:1.0 (selected for null) > [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.0-SNAPSHOT:runtime > (selected for runtime) > [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.0-SNAPSHOT:runtime > (selected for runtime) > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for > runtime) > [DEBUG] surefire-api: using locally installed snapshot > [DEBUG] Adding to surefire test classpath: C:\Documents and > Settings\csanchez\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar > [DEBUG] Adding to surefire test classpath: C:\Documents and > Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-booter\2.0-SNAPSHOT\surefire-booter-2.0-SNAPSHOT.jar > [DEBUG] Adding to surefire test classpath: C:\Documents and > Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-api\2.0-SNAPSHOT\surefire-api-2.0-SNAPSHOT.jar > [DEBUG] dummy:dummy:jar:1.0 (selected for null) > [DEBUG] Skipping disabled repository central > [DEBUG] surefire-junit: using locally installed snapshot > [DEBUG] Retrieving parent-POM from the repository for project: > null:surefire-junit:jar:2.0-SNAPSHOT > [DEBUG] Skipping disabled repository central > [DEBUG] surefire-providers: using locally installed snapshot > [DEBUG] Retrieving parent-POM from the repository for project: > null:surefire-providers:pom:null > [DEBUG] surefire: using locally installed snapshot > [DEBUG] org.apache.maven.surefire:surefire-junit:jar:2.0-SNAPSHOT (selected > for null) > [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile) > [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.0-SNAPSHOT:compile > (selected for compile) > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected for > compile) > [DEBUG] surefire-junit: using locally installed snapshot > [DEBUG] surefire-api: using locally installed snapshot > [DEBUG] Adding to surefire test classpath: C:\Documents and > Settings\csanchez\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar > [DEBUG] Adding to surefire test classpath: C:\Documents and > Settings\csanchez\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar > [DEBUG] Adding to surefire test classpath: C:\Documents and > Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-api\2.0-SNAPSHOT\surefire-api-2.0-SNAPSHOT.jar > [DEBUG] Adding to surefire test classpath: C:\Documents and > Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-junit\2.0-SNAPSHOT\surefire-junit-2.0-SNAPSHOT.jar > [DEBUG] Test Classpath : > [DEBUG] c:\dev\spring\spring\m2\spring-core\target\test-classes > [DEBUG] c:\dev\spring\spring\m2\spring-core\target\classes > [DEBUG] c:\dev\spring\spring\m2\spring-core\target\classes > [DEBUG] c:\dev\spring\spring\m2\spring-core\target\test-classes > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\javax\servlet\servlet-api\2.4\servlet-api-2.4.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\asm\asm\2.2.1\asm-2.2.1.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\asm\asm-commons\2.2.1\asm-commons-2.2.1.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\easymock\easymock\1.2_Java1.3\easymock-1.2_Java1.3.jar > [DEBUG] C:\Documents and > Settings\csanchez\.m2\repository\log4j\log4j\1.2.13\log4j-1.2.13.jar > [DEBUG] Setting system property [localRepository]=[C:/Documents and > Settings/csanchez/.m2/repository] > [DEBUG] Setting system property > [basedir]=[c:\dev\spring\spring\m2\spring-core] > [INFO] Surefire report directory: > c:\dev\spring\spring\m2\spring-core\target\surefire-reports > Forking command line: java -Djava.awt.headless=true -XX:MaxPermSize=128m > -Xmx128m -Xdebug -Xnoagent -Djava.compiler=NONE > -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -ea -classpath > "C:\Documents and > Settings\csanchez\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\Documents > and > Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-booter\2.0-SNAPSHOT\surefire-booter-2.0-SNAPSHOT.jar;C:\Documents > and > Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-api\2.0-SNAPSHOT\surefire-api-2.0-SNAPSHOT.jar;C:\Documents > and > Settings\csanchez\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Documents > and > Settings\csanchez\.m2\repository\org\apache\maven\surefire\surefire-junit\2.0-SNAPSHOT\surefire-junit-2.0-SNAPSHOT.jar;c:\dev\spring\spring\m2\spring-core\target\classes;c:\dev\spring\spring\m2\spring-core\target\test-classes;C:\Documents > and > Settings\csanchez\.m2\repository\commons-collections\commons-collections\3.1\co > mmons-collections-3.1.jar;C:\Documents and > Settings\csanchez\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents > and > Settings\csanchez\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;C:\Documents > and > Settings\csanchez\.m2\repository\javax\servlet\servlet-api\2.4\servlet-api-2.4.jar;C:\Documents > and > Settings\csanchez\.m2\repository\asm\asm\2.2.1\asm-2.2.1.jar;C:\Documents and > Settings\csanchez\.m2\repository\asm\asm-commons\2.2.1\asm-commons-2.2.1.jar;C:\Documents > and > Settings\csanchez\.m2\repository\easymock\easymock\1.2_Java1.3\easymock-1.2_Java1.3.jar;C:\Documents > and Settings\csanchez\.m2\repository\log4j\log4j\1.2.13\log4j-1.2.13.jar" > org.apache.maven.surefire.booter.SurefireBooter > c:\DOCUME~1\csanchez\LOCALS~1\Temp\surefire56074tmp > c:\DOCUME~1\csanchez\LOCALS~1\Temp\surefire56075tmp -- 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