mirror of https://github.com/apache/maven.git
o Fixed injection of repository layouts
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@795086 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
13ddca24aa
commit
6f6884233d
|
@ -74,11 +74,8 @@ public class LegacyRepositorySystem
|
|||
@Requirement
|
||||
private ArtifactRepositoryFactory artifactRepositoryFactory;
|
||||
|
||||
@Requirement
|
||||
private ArtifactRepositoryLayout defaultArtifactRepositoryLayout;
|
||||
|
||||
@Requirement
|
||||
private Map<String,ArtifactRepositoryLayout> layouts;
|
||||
@Requirement( role = ArtifactRepositoryLayout.class )
|
||||
private Map<String, ArtifactRepositoryLayout> layouts;
|
||||
|
||||
@Requirement
|
||||
private MirrorBuilder mirrorBuilder;
|
||||
|
@ -533,16 +530,16 @@ public class LegacyRepositorySystem
|
|||
|
||||
ArtifactRepositoryPolicy releasesPolicy = new ArtifactRepositoryPolicy( releases, releaseUpdates, checksumPolicy );
|
||||
|
||||
return createArtifactRepository( repositoryId, url, defaultArtifactRepositoryLayout, snapshotsPolicy, releasesPolicy );
|
||||
return createArtifactRepository( repositoryId, url, null, snapshotsPolicy, releasesPolicy );
|
||||
}
|
||||
|
||||
public ArtifactRepository createArtifactRepository( String repositoryId, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases )
|
||||
{
|
||||
{
|
||||
if ( repositoryLayout == null )
|
||||
{
|
||||
repositoryLayout = defaultArtifactRepositoryLayout;
|
||||
repositoryLayout = layouts.get( "default" );
|
||||
}
|
||||
|
||||
|
||||
ArtifactRepository artifactRepository = artifactRepositoryFactory.createArtifactRepository( repositoryId, url, repositoryLayout, snapshots, releases );
|
||||
|
||||
Authentication authentication = authentications.get( repositoryId );
|
||||
|
|
Loading…
Reference in New Issue