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
Modifier and TypeClassDescriptionstatic class
Builder class used to create DeploymentRepository instances. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getLocation
(Object key) Gets the location of the specified field in the input source.int
hashCode()
boolean
Whether to assign snapshots a unique version comprised of the timestamp and build number, or to use the same version each timestatic DeploymentRepository.Builder
Creates a newDeploymentRepository
builder instance.static DeploymentRepository.Builder
newBuilder
(boolean withDefaults) Creates a newDeploymentRepository
builder instance using default values or not.static DeploymentRepository.Builder
Creates a newDeploymentRepository
builder instance using the specified object as a basis.static DeploymentRepository.Builder
newBuilder
(DeploymentRepository from, boolean forceCopy) Creates a newDeploymentRepository
builder instance using the specified object as a basis.static DeploymentRepository
Creates a newDeploymentRepository
instance.static DeploymentRepository
newInstance
(boolean withDefaults) Creates a newDeploymentRepository
instance using default values or not.with()
Creates a new builder with this object as the basis.Creates a newDeploymentRepository
instance using the specified id.withLayout
(String layout) Creates a newDeploymentRepository
instance using the specified layout.Creates a newDeploymentRepository
instance using the specified name.withReleases
(RepositoryPolicy releases) Creates a newDeploymentRepository
instance using the specified releases.withSnapshots
(RepositoryPolicy snapshots) Creates a newDeploymentRepository
instance using the specified snapshots.withUniqueVersion
(boolean uniqueVersion) Creates a newDeploymentRepository
instance using the specified uniqueVersion.Creates a newDeploymentRepository
instance using the specified url.Methods inherited from class org.apache.maven.api.model.Repository
getReleases, getSnapshots, newBuilder, newBuilder
Methods inherited from class org.apache.maven.api.model.RepositoryBase
getId, getLayout, getName, getUrl, newBuilder, newBuilder
-
Method Details
-
equals
- Overrides:
equals
in classRepository
-
hashCode
public int hashCode()- Overrides:
hashCode
in 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:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classRepository
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classRepository
- Returns:
- a
Builder
-
withId
Creates a newDeploymentRepository
instance using the specified id.- Overrides:
withId
in classRepository
- Parameters:
id
- the newString
to use- Returns:
- a
DeploymentRepository
with the specified id
-
withName
Creates a newDeploymentRepository
instance using the specified name.- Overrides:
withName
in classRepository
- Parameters:
name
- the newString
to use- Returns:
- a
DeploymentRepository
with the specified name
-
withUrl
Creates a newDeploymentRepository
instance using the specified url.- Overrides:
withUrl
in classRepository
- Parameters:
url
- the newString
to use- Returns:
- a
DeploymentRepository
with the specified url
-
withLayout
Creates a newDeploymentRepository
instance using the specified layout.- Overrides:
withLayout
in classRepository
- Parameters:
layout
- the newString
to use- Returns:
- a
DeploymentRepository
with the specified layout
-
withReleases
Creates a newDeploymentRepository
instance using the specified releases.- Overrides:
withReleases
in classRepository
- Parameters:
releases
- the newRepositoryPolicy
to use- Returns:
- a
DeploymentRepository
with the specified releases
-
withSnapshots
Creates a newDeploymentRepository
instance using the specified snapshots.- Overrides:
withSnapshots
in classRepository
- Parameters:
snapshots
- the newRepositoryPolicy
to use- Returns:
- a
DeploymentRepository
with the specified snapshots
-
withUniqueVersion
Creates a newDeploymentRepository
instance using the specified uniqueVersion.- Parameters:
uniqueVersion
- the newboolean
to use- Returns:
- a
DeploymentRepository
with the specified uniqueVersion
-
newInstance
Creates a newDeploymentRepository
instance. Equivalent tonewInstance( true )
.- Returns:
- a new
DeploymentRepository
- See Also:
-
newInstance
Creates a newDeploymentRepository
instance 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 newDeploymentRepository
builder instance. Equivalent tonewBuilder( true )
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newDeploymentRepository
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newDeploymentRepository
builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
.- Parameters:
from
- theDeploymentRepository
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
@Nonnull public static DeploymentRepository.Builder newBuilder(DeploymentRepository from, boolean forceCopy) Creates a newDeploymentRepository
builder instance using the specified object as a basis.- Parameters:
from
- theDeploymentRepository
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-