Package org.apache.maven.api.model
Class DeploymentRepository
java.lang.Object
org.apache.maven.api.model.RepositoryBase
org.apache.maven.api.model.Repository
org.apache.maven.api.model.DeploymentRepository
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class DeploymentRepository
extends Repository
implements Serializable, InputLocationTracker
Deployment repository contains the information needed for deploying to the remote
 repository, which adds uniqueVersion property to usual repositories for download.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create DeploymentRepository instances.
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetLocation(Object key) Gets the location of the specified field in the input source.inthashCode()booleanWhether to assign snapshots a unique version comprised of the timestamp and build number, or to use the same version each timestatic DeploymentRepository.BuilderCreates a newDeploymentRepositorybuilder instance.static DeploymentRepository.BuildernewBuilder(boolean withDefaults) Creates a newDeploymentRepositorybuilder instance using default values or not.static DeploymentRepository.BuilderCreates a newDeploymentRepositorybuilder instance using the specified object as a basis.static DeploymentRepository.BuildernewBuilder(DeploymentRepository from, boolean forceCopy) Creates a newDeploymentRepositorybuilder instance using the specified object as a basis.static DeploymentRepositoryCreates a newDeploymentRepositoryinstance.static DeploymentRepositorynewInstance(boolean withDefaults) Creates a newDeploymentRepositoryinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newDeploymentRepositoryinstance using the specified id.withLayout(String layout) Creates a newDeploymentRepositoryinstance using the specified layout.Creates a newDeploymentRepositoryinstance using the specified name.withReleases(RepositoryPolicy releases) Creates a newDeploymentRepositoryinstance using the specified releases.withSnapshots(RepositoryPolicy snapshots) Creates a newDeploymentRepositoryinstance using the specified snapshots.withUniqueVersion(boolean uniqueVersion) Creates a newDeploymentRepositoryinstance using the specified uniqueVersion.Creates a newDeploymentRepositoryinstance using the specified url.Methods inherited from class org.apache.maven.api.model.RepositorygetReleases, getSnapshots, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.model.RepositoryBasegetId, getLayout, getName, getUrl, newBuilder, newBuilder
- 
Method Details- 
equals- Overrides:
- equalsin class- Repository
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- Repository
 
- 
isUniqueVersionpublic boolean isUniqueVersion()Whether to assign snapshots a unique version comprised of the timestamp and build number, or to use the same version each time- Returns:
- a boolean
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- Repository
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- Repository
- Returns:
- a Builder
 
- 
withIdCreates a newDeploymentRepositoryinstance using the specified id.- Overrides:
- withIdin class- Repository
- Parameters:
- id- the new- Stringto use
- Returns:
- a DeploymentRepositorywith the specified id
 
- 
withNameCreates a newDeploymentRepositoryinstance using the specified name.- Overrides:
- withNamein class- Repository
- Parameters:
- name- the new- Stringto use
- Returns:
- a DeploymentRepositorywith the specified name
 
- 
withUrlCreates a newDeploymentRepositoryinstance using the specified url.- Overrides:
- withUrlin class- Repository
- Parameters:
- url- the new- Stringto use
- Returns:
- a DeploymentRepositorywith the specified url
 
- 
withLayoutCreates a newDeploymentRepositoryinstance using the specified layout.- Overrides:
- withLayoutin class- Repository
- Parameters:
- layout- the new- Stringto use
- Returns:
- a DeploymentRepositorywith the specified layout
 
- 
withReleasesCreates a newDeploymentRepositoryinstance using the specified releases.- Overrides:
- withReleasesin class- Repository
- Parameters:
- releases- the new- RepositoryPolicyto use
- Returns:
- a DeploymentRepositorywith the specified releases
 
- 
withSnapshotsCreates a newDeploymentRepositoryinstance using the specified snapshots.- Overrides:
- withSnapshotsin class- Repository
- Parameters:
- snapshots- the new- RepositoryPolicyto use
- Returns:
- a DeploymentRepositorywith the specified snapshots
 
- 
withUniqueVersionCreates a newDeploymentRepositoryinstance using the specified uniqueVersion.- Parameters:
- uniqueVersion- the new- booleanto use
- Returns:
- a DeploymentRepositorywith the specified uniqueVersion
 
- 
newInstanceCreates a newDeploymentRepositoryinstance. Equivalent tonewInstance( true ).- Returns:
- a new DeploymentRepository
- See Also:
 
- 
newInstanceCreates a newDeploymentRepositoryinstance using default values or not. Equivalent tonewBuilder( withDefaults ).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new DeploymentRepository
 
- 
newBuilderCreates a newDeploymentRepositorybuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newDeploymentRepositorybuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newDeploymentRepositorybuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
- from- the- DeploymentRepositoryinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilder@Nonnull public static DeploymentRepository.Builder newBuilder(DeploymentRepository from, boolean forceCopy) Creates a newDeploymentRepositorybuilder instance using the specified object as a basis.- Parameters:
- from- the- DeploymentRepositoryinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-