mirror of https://github.com/apache/maven.git
put back surefire, junit dependencies. Needed to run tests.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
71633bcb1d
commit
aaae013631
|
@ -268,14 +268,17 @@ public class SurefirePlugin
|
|||
surefireBooter.addClassPathUrl( classpathElement );
|
||||
}
|
||||
|
||||
// for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
|
||||
// {
|
||||
// Artifact artifact = (Artifact) i.next();
|
||||
//
|
||||
// getLog().debug( artifact.getFile().getAbsolutePath() );
|
||||
//
|
||||
// surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
|
||||
// }
|
||||
for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
|
||||
{
|
||||
Artifact artifact = (Artifact) i.next();
|
||||
|
||||
if ( "junit".equals( artifact.getArtifactId() ) || "surefire".equals( artifact.getArtifactId() ) )
|
||||
{
|
||||
getLog().debug( artifact.getFile().getAbsolutePath() );
|
||||
|
||||
surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
|
||||
}
|
||||
}
|
||||
|
||||
addReporters(surefireBooter);
|
||||
|
||||
|
|
Loading…
Reference in New Issue