maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r782246 - /maven/components/trunk/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
Date Sat, 06 Jun 2009 12:50:22 GMT
Author: bentmann
Date: Sat Jun  6 12:50:22 2009
New Revision: 782246

URL: http://svn.apache.org/viewvc?rev=782246&view=rev
Log:
o Fixed tests to lookup IT plugins from the proper repo

Modified:
    maven/components/trunk/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

Modified: maven/components/trunk/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java?rev=782246&r1=782245&r2=782246&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
(original)
+++ maven/components/trunk/maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java
Sat Jun  6 12:50:22 2009
@@ -2,13 +2,10 @@
 
 import java.io.File;
 import java.util.Arrays;
-import java.util.LinkedHashMap;
 import java.util.List;
-import java.util.Map;
 import java.util.Properties;
 
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.ArtifactUtils;
 import org.apache.maven.artifact.InvalidRepositoryException;
 import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.execution.DefaultMavenExecutionRequest;
@@ -20,11 +17,10 @@
 import org.apache.maven.model.Exclusion;
 import org.apache.maven.model.Model;
 import org.apache.maven.model.Plugin;
-import org.apache.maven.plugin.PluginManager;
+import org.apache.maven.model.Repository;
 import org.apache.maven.project.DefaultProjectBuildingRequest;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.project.ProjectBuildingRequest;
-import org.apache.maven.repository.DelegatingLocalArtifactRepository;
 import org.apache.maven.repository.RepositorySystem;
 import org.codehaus.plexus.ContainerConfiguration;
 import org.codehaus.plexus.PlexusTestCase;
@@ -146,7 +142,12 @@
     protected List<ArtifactRepository> getRemoteRepositories() 
         throws InvalidRepositoryException
     {
-        return Arrays.asList( repositorySystem.createDefaultRemoteRepository() );
+        Repository itRepo = new Repository();
+        itRepo.setId( "maven.it" );
+        itRepo.setUrl( "http://repository.sonatype.org/content/repositories/maven.snapshots"
);
+
+        return Arrays.asList( repositorySystem.buildArtifactRepository( itRepo ),
+                              repositorySystem.createDefaultRemoteRepository() );
     }
         
     protected ArtifactRepository getLocalRepository() 



Mime
View raw message