diff --git a/maven-plugins/maven-eclipse-plugin/pom.xml b/maven-plugins/maven-eclipse-plugin/pom.xml index e13e7be6bf..654aa692c4 100644 --- a/maven-plugins/maven-eclipse-plugin/pom.xml +++ b/maven-plugins/maven-eclipse-plugin/pom.xml @@ -13,7 +13,7 @@ org.apache.maven maven-project - 2.0-alpha-2 + 2.0-SNAPSHOT plexus diff --git a/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java b/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java index 76339947a0..78aa95f567 100644 --- a/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java +++ b/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java @@ -37,6 +37,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; +import java.util.Collections; /** * @author Trygve Laugstøl @@ -73,11 +74,11 @@ public class EclipsePluginTest File repo = getTestFile( "src/test/repository" ); ArtifactRepositoryLayout localRepositoryLayout = (ArtifactRepositoryLayout) lookup( ArtifactRepositoryLayout.ROLE, "legacy" ); - + ArtifactRepository localRepository = new ArtifactRepository("local", "file://" + repo.getAbsolutePath(), localRepositoryLayout); - MavenProject project = builder.build( new File( basedir, "project.xml" ), localRepository ); - + MavenProject project = builder.build( new File( basedir, "project.xml" ), localRepository, Collections.EMPTY_LIST ); + for ( Iterator it = project.getArtifacts().iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next();