mirror of https://github.com/apache/maven.git
update api
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@191619 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce0065fea3
commit
b61ca41b76
|
@ -13,7 +13,7 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-project</artifactId>
|
||||
<version>2.0-alpha-2</version>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>plexus</groupId>
|
||||
|
|
|
@ -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 <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a>
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue