mirror of https://github.com/apache/maven.git
surefire issues
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bab8d3fd90
commit
54a8cea863
|
@ -280,7 +280,22 @@ public class MBoot
|
|||
|
||||
reader = new ModelReader( localRepository );
|
||||
reader.parse( new File( basedir, "maven-plugins/maven-surefire-plugin/pom.xml" ) );
|
||||
List surefireDependencies = reader.getDependencies();
|
||||
List surefireDependencies = new ArrayList();
|
||||
|
||||
// TODO: while we have maven-artifact in there, it needs to be filtered...
|
||||
for ( Iterator i = reader.getDependencies().iterator(); i.hasNext(); )
|
||||
{
|
||||
Dependency d = (Dependency) i.next();
|
||||
if ( d.getGroupId().equals( "surefire" ) )
|
||||
{
|
||||
surefireDependencies.add( d );
|
||||
}
|
||||
}
|
||||
|
||||
if ( online )
|
||||
{
|
||||
downloader.downloadDependencies( surefireDependencies );
|
||||
}
|
||||
|
||||
reader = new ModelReader( localRepository );
|
||||
|
||||
|
|
|
@ -60,10 +60,10 @@ public class ArtifactDownloader
|
|||
System.out.println( "Using the following proxy : " + proxyHost + "/" + proxyPort );
|
||||
}
|
||||
|
||||
public void downloadDependencies( List files )
|
||||
public void downloadDependencies( List dependencies )
|
||||
throws Exception
|
||||
{
|
||||
for ( Iterator j = files.iterator(); j.hasNext(); )
|
||||
for ( Iterator j = dependencies.iterator(); j.hasNext(); )
|
||||
{
|
||||
Dependency dep = (Dependency) j.next();
|
||||
|
||||
|
|
Loading…
Reference in New Issue