|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.maven.model.ModelBase
org.apache.maven.model.Model
The <project> element specifies
various attributes
about a project. This is the root element of the
project descriptor.
The following table lists all of the possible child
elements. Child
elements with children are then documented further in
subsequent
sections.
| Constructor Summary | |
Model()
|
|
| Method Summary | |
void |
addContributor(Contributor contributor)
Method addContributor |
void |
addDeveloper(Developer developer)
Method addDeveloper |
void |
addLicense(License license)
Method addLicense |
void |
addMailingList(MailingList mailingList)
Method addMailingList |
void |
addProfile(Profile profile)
Method addProfile |
java.lang.String |
getArtifactId()
Get The short name of the project. |
Build |
getBuild()
Get Information required to build the project. |
CiManagement |
getCiManagement()
Get The project's continuous integration management information. |
java.util.List |
getContributors()
Method getContributors |
java.lang.String |
getDescription()
Get Optional. |
java.util.List |
getDevelopers()
Method getDevelopers |
java.lang.String |
getGroupId()
Get The short name of the project group. |
java.lang.String |
getId()
|
java.lang.String |
getInceptionYear()
Get The year of the project's inception specified with 4 digits. |
IssueManagement |
getIssueManagement()
Get The project's issue management information. |
java.util.List |
getLicenses()
Method getLicenses |
java.util.List |
getMailingLists()
Method getMailingLists |
java.lang.String |
getModelEncoding()
|
java.lang.String |
getModelVersion()
Get Declares to which version of project descriptor this POM conforms. |
java.lang.String |
getName()
Get The full name of the project. |
Organization |
getOrganization()
Get This element describes various attributes of the organization to which the project belongs. |
java.lang.String |
getPackaging()
Get The type of artifact this project produces. |
Parent |
getParent()
Get Information on which parent POM to extend. |
Prerequisites |
getPrerequisites()
Get Describes the prerequisites in the build environment for this project. |
java.util.List |
getProfiles()
Method getProfiles |
Scm |
getScm()
Get Specification for the SCM used by the project. |
java.lang.String |
getUrl()
Get The URL to the project's homepage. |
java.lang.String |
getVersion()
Get The current version of the artifact produced by this project. |
void |
removeContributor(Contributor contributor)
Method removeContributor |
void |
removeDeveloper(Developer developer)
Method removeDeveloper |
void |
removeLicense(License license)
Method removeLicense |
void |
removeMailingList(MailingList mailingList)
Method removeMailingList |
void |
removeProfile(Profile profile)
Method removeProfile |
void |
setArtifactId(java.lang.String artifactId)
Set The short name of the project. |
void |
setBuild(Build build)
Set Information required to build the project. |
void |
setCiManagement(CiManagement ciManagement)
Set The project's continuous integration management information. |
void |
setContributors(java.util.List contributors)
Set Describes the contributors to a project. |
void |
setDescription(java.lang.String description)
Set Optional. |
void |
setDevelopers(java.util.List developers)
Set Describes the committers to a project. |
void |
setGroupId(java.lang.String groupId)
Set The short name of the project group. |
void |
setInceptionYear(java.lang.String inceptionYear)
Set The year of the project's inception specified with 4 digits. |
void |
setIssueManagement(IssueManagement issueManagement)
Set The project's issue management information. |
void |
setLicenses(java.util.List licenses)
Set This element describes all of the licenses for this project. |
void |
setMailingLists(java.util.List mailingLists)
Set Contains information about a project's mailing lists. |
void |
setModelEncoding(java.lang.String modelEncoding)
|
void |
setModelVersion(java.lang.String modelVersion)
Set Declares to which version of project descriptor this POM conforms. |
void |
setName(java.lang.String name)
Set The full name of the project. |
void |
setOrganization(Organization organization)
Set This element describes various attributes of the organization to which the project belongs. |
void |
setPackaging(java.lang.String packaging)
Set The type of artifact this project produces. |
void |
setParent(Parent parent)
Set Information on which parent POM to extend. |
void |
setPrerequisites(Prerequisites prerequisites)
Set Describes the prerequisites in the build environment for this project. |
void |
setProfiles(java.util.List profiles)
Set Listing of project-local build profiles which will modify the build process when activated. |
void |
setScm(Scm scm)
Set Specification for the SCM used by the project. |
void |
setUrl(java.lang.String url)
Set The URL to the project's homepage. |
void |
setVersion(java.lang.String version)
Set The current version of the artifact produced by this project. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Model()
| Method Detail |
public void addContributor(Contributor contributor)
contributor - public void addDeveloper(Developer developer)
developer - public void addLicense(License license)
license - public void addMailingList(MailingList mailingList)
mailingList - public void addProfile(Profile profile)
profile - public java.lang.String getArtifactId()
groupId
when naming jars and
distribution
files.
public Build getBuild()
public CiManagement getCiManagement()
public java.util.List getContributors()
public java.lang.String getDescription()
maven
--usage is called on
the project. While this element can be specified
as CDATA to enable
the use of HTML tags within the description, you
are encouraged to
provide an alternative home page using
xdocs/index.xml
if this is required.
public java.util.List getDevelopers()
public java.lang.String getGroupId()
public java.lang.String getInceptionYear()
public IssueManagement getIssueManagement()
public java.util.List getLicenses()
public java.util.List getMailingLists()
public java.lang.String getModelVersion()
public java.lang.String getName()
public Organization getOrganization()
public java.lang.String getPackaging()
public Parent getParent()
public Prerequisites getPrerequisites()
public java.util.List getProfiles()
public Scm getScm()
public java.lang.String getUrl()
public java.lang.String getVersion()
public void removeContributor(Contributor contributor)
contributor - public void removeDeveloper(Developer developer)
developer - public void removeLicense(License license)
license - public void removeMailingList(MailingList mailingList)
mailingList - public void removeProfile(Profile profile)
profile - public void setArtifactId(java.lang.String artifactId)
groupId
when naming jars and
distribution
files.
artifactId - public void setBuild(Build build)
build - public void setCiManagement(CiManagement ciManagement)
ciManagement - public void setContributors(java.util.List contributors)
contributors - public void setDescription(java.lang.String description)
maven
--usage is called on
the project. While this element can be specified
as CDATA to enable
the use of HTML tags within the description, you
are encouraged to
provide an alternative home page using
xdocs/index.xml
if this is required.
description - public void setDevelopers(java.util.List developers)
developers - public void setGroupId(java.lang.String groupId)
groupId - public void setInceptionYear(java.lang.String inceptionYear)
inceptionYear - public void setIssueManagement(IssueManagement issueManagement)
issueManagement - public void setLicenses(java.util.List licenses)
license element, which
is then described by additional elements
(described below). The
auto-generated site documentation references
this information.
Projects should only list the license(s) that
applies to the project
and not the licenses that apply to dependencies.
licenses - public void setMailingLists(java.util.List mailingLists)
mailingLists - public void setModelVersion(java.lang.String modelVersion)
modelVersion - public void setName(java.lang.String name)
name - public void setOrganization(Organization organization)
organization - public void setPackaging(java.lang.String packaging)
packaging - public void setParent(Parent parent)
parent - public void setPrerequisites(Prerequisites prerequisites)
prerequisites - public void setProfiles(java.util.List profiles)
profiles - public void setScm(Scm scm)
scm - public void setUrl(java.lang.String url)
url - public void setVersion(java.lang.String version)
version - public java.lang.String getId()
public void setModelEncoding(java.lang.String modelEncoding)
setModelEncoding in class ModelBasepublic java.lang.String getModelEncoding()
getModelEncoding in class ModelBase
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||