mirror of https://github.com/apache/maven.git
o Fixed empty project building helper to pass request repos through if provided for tests that use them
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b69b4ab4f9
commit
cec9b2002a
|
@ -43,9 +43,16 @@ public class EmptyProjectBuildingHelper
|
||||||
public List<ArtifactRepository> createArtifactRepositories( List<Repository> pomRepositories,
|
public List<ArtifactRepository> createArtifactRepositories( List<Repository> pomRepositories,
|
||||||
List<ArtifactRepository> externalRepositories )
|
List<ArtifactRepository> externalRepositories )
|
||||||
throws InvalidRepositoryException
|
throws InvalidRepositoryException
|
||||||
|
{
|
||||||
|
if ( externalRepositories != null )
|
||||||
|
{
|
||||||
|
return externalRepositories;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return new ArrayList<ArtifactRepository>();
|
return new ArrayList<ArtifactRepository>();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public ClassRealm createProjectRealm( Model model, ArtifactRepository localRepository,
|
public ClassRealm createProjectRealm( Model model, ArtifactRepository localRepository,
|
||||||
List<ArtifactRepository> remoteRepositories )
|
List<ArtifactRepository> remoteRepositories )
|
||||||
|
|
Loading…
Reference in New Issue