Class DefaultArtifactRepositoryFactory
java.lang.Object
org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory
- All Implemented Interfaces:
ArtifactRepositoryFactory
@Named
@Singleton
public class DefaultArtifactRepositoryFactory
extends Object
implements ArtifactRepositoryFactory
- Author:
- jdcasey
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.repository.ArtifactRepositoryFactory
DEFAULT_LAYOUT_ID, LOCAL_REPOSITORY_ID, ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateArtifactRepository
(String id, String url, String layoutId, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) createArtifactRepository
(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) createDeploymentArtifactRepository
(String id, String url, String layoutId, boolean uniqueVersion) createDeploymentArtifactRepository
(String id, String url, ArtifactRepositoryLayout repositoryLayout, boolean uniqueVersion) void
setGlobalChecksumPolicy
(String checksumPolicy) void
setGlobalUpdatePolicy
(String updatePolicy)
-
Constructor Details
-
DefaultArtifactRepositoryFactory
public DefaultArtifactRepositoryFactory()
-
-
Method Details
-
getLayout
- Specified by:
getLayout
in interfaceArtifactRepositoryFactory
- Throws:
UnknownRepositoryLayoutException
-
createDeploymentArtifactRepository
public ArtifactRepository createDeploymentArtifactRepository(String id, String url, String layoutId, boolean uniqueVersion) throws UnknownRepositoryLayoutException - Specified by:
createDeploymentArtifactRepository
in interfaceArtifactRepositoryFactory
- Throws:
UnknownRepositoryLayoutException
-
createDeploymentArtifactRepository
public ArtifactRepository createDeploymentArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, boolean uniqueVersion) - Specified by:
createDeploymentArtifactRepository
in interfaceArtifactRepositoryFactory
-
createArtifactRepository
public ArtifactRepository createArtifactRepository(String id, String url, String layoutId, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) throws UnknownRepositoryLayoutException - Specified by:
createArtifactRepository
in interfaceArtifactRepositoryFactory
- Throws:
UnknownRepositoryLayoutException
-
createArtifactRepository
public ArtifactRepository createArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) - Specified by:
createArtifactRepository
in interfaceArtifactRepositoryFactory
-
setGlobalUpdatePolicy
- Specified by:
setGlobalUpdatePolicy
in interfaceArtifactRepositoryFactory
-
setGlobalChecksumPolicy
- Specified by:
setGlobalChecksumPolicy
in interfaceArtifactRepositoryFactory
-