@Experimental @Generated @ThreadSafe @Immutable public class DistributionManagement extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
DistributionManagement.Builder
Builder class used to create DistributionManagement instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getDownloadUrl()
The URL of the project's download page.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
Relocation |
getRelocation()
Relocation information of the artifact if it has been moved to a new group ID
and/or artifact ID.
|
DeploymentRepository |
getRepository()
Information needed to deploy the artifacts generated by the project to a
remote repository.
|
Site |
getSite()
Information needed for deploying the web site of the project.
|
DeploymentRepository |
getSnapshotRepository()
Where to deploy snapshots of artifacts to.
|
String |
getStatus()
Gives the status of this artifact in the remote repository.
|
static DistributionManagement.Builder |
newBuilder()
Creates a new
DistributionManagement builder instance. |
static DistributionManagement.Builder |
newBuilder(boolean withDefaults)
Creates a new
DistributionManagement builder instance using default values or not. |
static DistributionManagement.Builder |
newBuilder(DistributionManagement from)
Creates a new
DistributionManagement builder instance using the specified object as a basis. |
static DistributionManagement.Builder |
newBuilder(DistributionManagement from,
boolean forceCopy)
Creates a new
DistributionManagement builder instance using the specified object as a basis. |
static DistributionManagement |
newInstance()
Creates a new
DistributionManagement instance. |
static DistributionManagement |
newInstance(boolean withDefaults)
Creates a new
DistributionManagement instance using default values or not. |
DistributionManagement.Builder |
with()
Creates a new builder with this object as the basis.
|
DistributionManagement |
withDownloadUrl(String downloadUrl)
Creates a new
DistributionManagement instance using the specified downloadUrl. |
DistributionManagement |
withRelocation(Relocation relocation)
Creates a new
DistributionManagement instance using the specified relocation. |
DistributionManagement |
withRepository(DeploymentRepository repository)
Creates a new
DistributionManagement instance using the specified repository. |
DistributionManagement |
withSite(Site site)
Creates a new
DistributionManagement instance using the specified site. |
DistributionManagement |
withSnapshotRepository(DeploymentRepository snapshotRepository)
Creates a new
DistributionManagement instance using the specified snapshotRepository. |
DistributionManagement |
withStatus(String status)
Creates a new
DistributionManagement instance using the specified status. |
public DeploymentRepository getRepository()
DeploymentRepository
public DeploymentRepository getSnapshotRepository()
repository
element.DeploymentRepository
public Site getSite()
Site
public String getDownloadUrl()
url
.
This is given to assist in locating artifacts that are not in the repository due to
licensing restrictions.String
public Relocation getRelocation()
Relocation
public String getStatus()
none
(default),
converted
(repository manager converted this from an Maven 1 POM),
partner
(directly synced from a partner Maven 2 repository), deployed
(was deployed from a Maven 2
instance), verified
(has been hand verified as correct and final).String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public DistributionManagement.Builder with()
Builder
@Nonnull public DistributionManagement withRepository(DeploymentRepository repository)
DistributionManagement
instance using the specified repository.repository
- the new DeploymentRepository
to useDistributionManagement
with the specified repository@Nonnull public DistributionManagement withSnapshotRepository(DeploymentRepository snapshotRepository)
DistributionManagement
instance using the specified snapshotRepository.snapshotRepository
- the new DeploymentRepository
to useDistributionManagement
with the specified snapshotRepository@Nonnull public DistributionManagement withSite(Site site)
DistributionManagement
instance using the specified site.site
- the new Site
to useDistributionManagement
with the specified site@Nonnull public DistributionManagement withDownloadUrl(String downloadUrl)
DistributionManagement
instance using the specified downloadUrl.downloadUrl
- the new String
to useDistributionManagement
with the specified downloadUrl@Nonnull public DistributionManagement withRelocation(Relocation relocation)
DistributionManagement
instance using the specified relocation.relocation
- the new Relocation
to useDistributionManagement
with the specified relocation@Nonnull public DistributionManagement withStatus(String status)
DistributionManagement
instance using the specified status.status
- the new String
to useDistributionManagement
with the specified status@Nonnull public static DistributionManagement newInstance()
DistributionManagement
instance.
Equivalent to newInstance( true )
.DistributionManagement
newInstance(boolean)
@Nonnull public static DistributionManagement newInstance(boolean withDefaults)
DistributionManagement
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedDistributionManagement
@Nonnull public static DistributionManagement.Builder newBuilder()
DistributionManagement
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static DistributionManagement.Builder newBuilder(boolean withDefaults)
DistributionManagement
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static DistributionManagement.Builder newBuilder(DistributionManagement from)
DistributionManagement
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the DistributionManagement
instance to use as a basisBuilder
@Nonnull public static DistributionManagement.Builder newBuilder(DistributionManagement from, boolean forceCopy)
DistributionManagement
builder instance using the specified object as a basis.from
- the DistributionManagement
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.