Package org.apache.maven.model
Class DistributionManagement
- java.lang.Object
-
- org.apache.maven.model.DistributionManagement
-
- All Implemented Interfaces:
java.io.Serializable
public class DistributionManagement extends java.lang.Object implements java.io.SerializableThis 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdownloadUrlThe URL of the project's download page.private RelocationrelocationRelocation information of the artifact if it has been moved to a new group ID and/or artifact ID.private DeploymentRepositoryrepositoryInformation needed to deploy the artifacts generated by the project to a remote repository.private SitesiteInformation needed for deploying the web site of the project.private DeploymentRepositorysnapshotRepositoryWhere to deploy snapshots of artifacts to.private java.lang.StringstatusGives the status of this artifact in the remote repository.
-
Constructor Summary
Constructors Constructor Description DistributionManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDownloadUrl()Get the URL of the project's download page.RelocationgetRelocation()Get relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.DeploymentRepositorygetRepository()Get information needed to deploy the artifacts generated by the project to a remote repository.SitegetSite()Get information needed for deploying the web site of the project.DeploymentRepositorygetSnapshotRepository()Get where to deploy snapshots of artifacts to.java.lang.StringgetStatus()Get gives the status of this artifact in the remote repository.voidsetDownloadUrl(java.lang.String downloadUrl)Set the URL of the project's download page.voidsetRelocation(Relocation relocation)Set relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.voidsetRepository(DeploymentRepository repository)Set information needed to deploy the artifacts generated by the project to a remote repository.voidsetSite(Site site)Set information needed for deploying the web site of the project.voidsetSnapshotRepository(DeploymentRepository snapshotRepository)Set where to deploy snapshots of artifacts to.voidsetStatus(java.lang.String status)Set gives the status of this artifact in the remote repository.
-
-
-
Field Detail
-
repository
private DeploymentRepository repository
Information needed to deploy the artifacts generated by the project to a remote repository.
-
snapshotRepository
private DeploymentRepository snapshotRepository
Where to deploy snapshots of artifacts to. If not given, it defaults to therepositoryelement.
-
site
private Site site
Information needed for deploying the web site of the project.
-
downloadUrl
private java.lang.String 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
private Relocation relocation
Relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.
-
status
private java.lang.String 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).
-
-
Method Detail
-
getDownloadUrl
public java.lang.String 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
-
getRelocation
public Relocation getRelocation()
Get relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.- Returns:
- Relocation
-
getRepository
public DeploymentRepository getRepository()
Get information needed to deploy the artifacts generated by the project to a remote repository.- Returns:
- DeploymentRepository
-
getSite
public Site getSite()
Get information needed for deploying the web site of the project.- Returns:
- Site
-
getSnapshotRepository
public DeploymentRepository getSnapshotRepository()
Get where to deploy snapshots of artifacts to. If not given, it defaults to therepositoryelement.- Returns:
- DeploymentRepository
-
getStatus
public java.lang.String 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
public void setDownloadUrl(java.lang.String downloadUrl)
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-
-
setRelocation
public void setRelocation(Relocation relocation)
Set relocation information of the artifact if it has been moved to a new group ID and/or artifact ID.- Parameters:
relocation-
-
setRepository
public void setRepository(DeploymentRepository repository)
Set information needed to deploy the artifacts generated by the project to a remote repository.- Parameters:
repository-
-
setSite
public void setSite(Site site)
Set information needed for deploying the web site of the project.- Parameters:
site-
-
setSnapshotRepository
public void setSnapshotRepository(DeploymentRepository snapshotRepository)
Set where to deploy snapshots of artifacts to. If not given, it defaults to therepositoryelement.- Parameters:
snapshotRepository-
-
setStatus
public void setStatus(java.lang.String status)
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-
-
-