mirror of https://github.com/apache/maven.git
Fix surefire classpath creation. plugin artifacts must be in classpath after project artifact.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40dffa09db
commit
5ec721cb29
|
@ -226,17 +226,17 @@ public class SurefirePlugin
|
|||
|
||||
surefireBooter.addClassPathUrl( classesDirectory.getPath() );
|
||||
|
||||
for ( Iterator i = classpathElements.iterator(); i.hasNext(); )
|
||||
{
|
||||
surefireBooter.addClassPathUrl( (String) i.next() );
|
||||
}
|
||||
|
||||
for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
|
||||
{
|
||||
Artifact artifact = (Artifact) i.next();
|
||||
surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
|
||||
}
|
||||
|
||||
for ( Iterator i = classpathElements.iterator(); i.hasNext(); )
|
||||
{
|
||||
surefireBooter.addClassPathUrl( (String) i.next() );
|
||||
}
|
||||
|
||||
surefireBooter.addReport( "org.codehaus.surefire.report.ConsoleReporter" );
|
||||
|
||||
surefireBooter.addReport( "org.codehaus.surefire.report.FileReporter" );
|
||||
|
|
Loading…
Reference in New Issue