o Fix compilation error with mirrors

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-03-01 16:51:22 +00:00
parent c5571a0c78
commit 3051c4974b
2 changed files with 14 additions and 0 deletions

View File

@ -90,6 +90,9 @@ public class LegacyMavenRepositorySystem
@Requirement
private ArtifactMetadataSource artifactMetadataSource;
@Requirement
private MirrorBuilder mirrorBuilder;
@Requirement
private Logger logger;
@ -626,4 +629,11 @@ public class LegacyMavenRepositorySystem
{
return artifactMetadataSource.retrieveRelocatedArtifact( artifact, localRepository, remoteRepositories );
}
// Mirror
public void addMirror( String id, String mirrorOf, String url )
{
mirrorBuilder.addMirror( id, mirrorOf, url );
}
}

View File

@ -127,4 +127,8 @@ public interface MavenRepositorySystem
void addAuthenticationInfo( String repositoryId, String username, String password, String privateKey, String passphrase );
void addPermissionInfo( String repositoryId, String filePermissions, String directoryPermissions );
// Mirrors
void addMirror( String id, String mirrorOf, String url );
}