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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create DeploymentRepository instances. -
Method Summary
Modifier 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.Repository
getReleases, getSnapshots, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.model.RepositoryBase
getId, getLayout, getName, getUrl, newBuilder, newBuilder
-
Method Details
-
equals
- Overrides:
equalsin classRepository
-
hashCode
public int hashCode()- Overrides:
hashCodein classRepository
-
isUniqueVersion
public 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
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Overrides:
getLocationin classRepository
-
with
Creates a new builder with this object as the basis.- Overrides:
within classRepository- Returns:
- a
Builder
-
withId
Creates a newDeploymentRepositoryinstance using the specified id.- Overrides:
withIdin classRepository- Parameters:
id- the newStringto use- Returns:
- a
DeploymentRepositorywith the specified id
-
withName
Creates a newDeploymentRepositoryinstance using the specified name.- Overrides:
withNamein classRepository- Parameters:
name- the newStringto use- Returns:
- a
DeploymentRepositorywith the specified name
-
withUrl
Creates a newDeploymentRepositoryinstance using the specified url.- Overrides:
withUrlin classRepository- Parameters:
url- the newStringto use- Returns:
- a
DeploymentRepositorywith the specified url
-
withLayout
Creates a newDeploymentRepositoryinstance using the specified layout.- Overrides:
withLayoutin classRepository- Parameters:
layout- the newStringto use- Returns:
- a
DeploymentRepositorywith the specified layout
-
withReleases
Creates a newDeploymentRepositoryinstance using the specified releases.- Overrides:
withReleasesin classRepository- Parameters:
releases- the newRepositoryPolicyto use- Returns:
- a
DeploymentRepositorywith the specified releases
-
withSnapshots
Creates a newDeploymentRepositoryinstance using the specified snapshots.- Overrides:
withSnapshotsin classRepository- Parameters:
snapshots- the newRepositoryPolicyto use- Returns:
- a
DeploymentRepositorywith the specified snapshots
-
withUniqueVersion
Creates a newDeploymentRepositoryinstance using the specified uniqueVersion.- Parameters:
uniqueVersion- the newbooleanto use- Returns:
- a
DeploymentRepositorywith the specified uniqueVersion
-
newInstance
Creates a newDeploymentRepositoryinstance. Equivalent tonewInstance( true ).- Returns:
- a new
DeploymentRepository - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newDeploymentRepositorybuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newDeploymentRepositorybuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newDeploymentRepositorybuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
from- theDeploymentRepositoryinstance 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- theDeploymentRepositoryinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-