Package org.apache.maven.model
Class DistributionManagement
java.lang.Object
org.apache.maven.model.DistributionManagement
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
public class DistributionManagement
extends Object
implements Serializable, Cloneable, InputLocationTracker
This elements describes all that pertains to distribution for a
project. It is
primarily used for deployment of artifacts and the site
produced by the build.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The URL of the project's download page.private InputLocation
Field downloadUrlLocation.private InputLocation
Field location.private Map<Object,
InputLocation> Field locations.private Relocation
Relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.private InputLocation
Field relocationLocation.private DeploymentRepository
Information needed to deploy the artifacts generated by the project to a remote repository.private InputLocation
Field repositoryLocation.private Site
Information needed for deploying the web site of the project.private InputLocation
Field siteLocation.private DeploymentRepository
Where to deploy snapshots of artifacts to.private InputLocation
Field snapshotRepositoryLocation.private String
Gives the status of this artifact in the remote repository.private InputLocation
Field statusLocation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Method clone.Get the URL of the project's download page.getLocation
(Object key) Gets the location of the specified field in the input source.private InputLocation
getOtherLocation
(Object key) Get relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.Get information needed to deploy the artifacts generated by the project to a remote repository.getSite()
Get information needed for deploying the web site of the project.Get where to deploy snapshots of artifacts to.Get gives the status of this artifact in the remote repository.void
setDownloadUrl
(String downloadUrl) Set the URL of the project's download page.void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setOtherLocation
(Object key, InputLocation location) void
setRelocation
(Relocation relocation) Set relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.void
setRepository
(DeploymentRepository repository) Set information needed to deploy the artifacts generated by the project to a remote repository.void
Set information needed for deploying the web site of the project.void
setSnapshotRepository
(DeploymentRepository snapshotRepository) Set where to deploy snapshots of artifacts to.void
Set gives the status of this artifact in the remote repository.
-
Field Details
-
repository
Information needed to deploy the artifacts generated by the project to a remote repository. -
snapshotRepository
Where to deploy snapshots of artifacts to. If not given, it defaults to therepository
element. -
site
Information needed for deploying the web site of the project. -
downloadUrl
The URL of the project's download page. If not given users will be referred to the homepage given byurl
. This is given to assist in locating artifacts that are not in the repository due to licensing restrictions. -
relocation
Relocation information of the artifact if it has been moved to a new group ID and/or artifact ID. -
status
Gives the status of this artifact in the remote repository. This must not be set in your local project, as it is updated by tools placing it in the reposiory. Valid values are: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). -
locations
Field locations. -
location
Field location. -
repositoryLocation
Field repositoryLocation. -
snapshotRepositoryLocation
Field snapshotRepositoryLocation. -
siteLocation
Field siteLocation. -
downloadUrlLocation
Field downloadUrlLocation. -
relocationLocation
Field relocationLocation. -
statusLocation
Field statusLocation.
-
-
Constructor Details
-
DistributionManagement
public DistributionManagement()
-
-
Method Details
-
clone
Method clone. -
getDownloadUrl
Get the URL of the project's download page. If not given users will be referred to the homepage given byurl
. This is given to assist in locating artifacts that are not in the repository due to licensing restrictions.- Returns:
- String
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
- Parameters:
key
- a key object.location
- a location object.
-
getOtherLocation
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
getRelocation
Get relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.- Returns:
- Relocation
-
getRepository
Get information needed to deploy the artifacts generated by the project to a remote repository.- Returns:
- DeploymentRepository
-
getSite
Get information needed for deploying the web site of the project.- Returns:
- Site
-
getSnapshotRepository
Get where to deploy snapshots of artifacts to. If not given, it defaults to therepository
element.- Returns:
- DeploymentRepository
-
getStatus
Get gives the status of this artifact in the remote repository. This must not be set in your local project, as it is updated by tools placing it in the reposiory. Valid values are: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).- Returns:
- String
-
setDownloadUrl
Set the URL of the project's download page. If not given users will be referred to the homepage given byurl
. This is given to assist in locating artifacts that are not in the repository due to licensing restrictions.- Parameters:
downloadUrl
- a downloadUrl object.
-
setRelocation
Set relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.- Parameters:
relocation
- a relocation object.
-
setRepository
Set information needed to deploy the artifacts generated by the project to a remote repository.- Parameters:
repository
- a repository object.
-
setSite
Set information needed for deploying the web site of the project.- Parameters:
site
- a site object.
-
setSnapshotRepository
Set where to deploy snapshots of artifacts to. If not given, it defaults to therepository
element.- Parameters:
snapshotRepository
- a snapshotRepository object.
-
setStatus
Set gives the status of this artifact in the remote repository. This must not be set in your local project, as it is updated by tools placing it in the reposiory. Valid values are: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).- Parameters:
status
- a status object.
-