public class Model extends ModelBase implements Serializable
<project>
element is the root of
the descriptor.
The following table lists all of the possible child
elements.Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getArtifactId()
Get the identifier for this artifact that is unique within
the group given by the
group ID.
|
Build |
getBuild()
Get information required to build the project.
|
CiManagement |
getCiManagement()
Get the project's continuous integration information.
|
List<Contributor> |
getContributors()
Method getContributors.
|
String |
getDescription()
Get a detailed description of the project, used by Maven
whenever it needs to
describe the project, such as on the web site.
|
List<Developer> |
getDevelopers()
Method getDevelopers.
|
String |
getGroupId()
Get a universally unique identifier for a project.
|
String |
getId() |
String |
getInceptionYear()
Get the year of the project's inception, specified with 4
digits.
|
IssueManagement |
getIssueManagement()
Get the project's issue management system information.
|
List<License> |
getLicenses()
Method getLicenses.
|
List<MailingList> |
getMailingLists()
Method getMailingLists.
|
String |
getModelEncoding()
Get the modelEncoding field.
|
String |
getModelVersion()
Get declares to which version of project descriptor this POM
conforms.
|
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.
|
String |
getPackaging()
Get the type of artifact this project produces, for example
jar
war
ear
pom . |
Parent |
getParent()
Get the location of the parent project, if one exists.
|
Prerequisites |
getPrerequisites()
Get describes the prerequisites in the build environment for
this project.
|
List<Profile> |
getProfiles()
Method getProfiles.
|
Scm |
getScm()
Get specification for the SCM used by the project, such as
CVS, Subversion, etc.
|
String |
getUrl()
Get the URL to the project's homepage.
|
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(String artifactId)
Set the identifier for this artifact that is unique within
the group given by the
group ID.
|
void |
setBuild(Build build)
Set information required to build the project.
|
void |
setCiManagement(CiManagement ciManagement)
Set the project's continuous integration information.
|
void |
setContributors(List<Contributor> contributors)
Set describes the contributors to a project that are not yet
committers.
|
void |
setDescription(String description)
Set a detailed description of the project, used by Maven
whenever it needs to
describe the project, such as on the web site.
|
void |
setDevelopers(List<Developer> developers)
Set describes the committers of a project.
|
void |
setGroupId(String groupId)
Set a universally unique identifier for a project.
|
void |
setInceptionYear(String inceptionYear)
Set the year of the project's inception, specified with 4
digits.
|
void |
setIssueManagement(IssueManagement issueManagement)
Set the project's issue management system information.
|
void |
setLicenses(List<License> licenses)
Set this element describes all of the licenses for this
project.
|
void |
setMailingLists(List<MailingList> mailingLists)
Set contains information about a project's mailing lists.
|
void |
setModelEncoding(String modelEncoding)
Set the modelEncoding field.
|
void |
setModelVersion(String modelVersion)
Set declares to which version of project descriptor this POM
conforms.
|
void |
setName(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(String packaging)
Set the type of artifact this project produces, for example
jar
war
ear
pom . |
void |
setParent(Parent parent)
Set the location of the parent project, if one exists.
|
void |
setPrerequisites(Prerequisites prerequisites)
Set describes the prerequisites in the build environment for
this project.
|
void |
setProfiles(List<Profile> profiles)
Set a 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, such as
CVS, Subversion, etc.
|
void |
setUrl(String url)
Set the URL to the project's homepage.
|
void |
setVersion(String version)
Set the current version of the artifact produced by this
project.
|
addDependency, addModule, addPluginRepository, addProperty, addRepository, getDependencies, getDependencyManagement, getDistributionManagement, getModules, getPluginRepositories, getProperties, getReporting, getReports, getRepositories, removeDependency, removeModule, removePluginRepository, removeRepository, setDependencies, setDependencyManagement, setDistributionManagement, setModules, setPluginRepositories, setProperties, setReporting, setReports, setRepositories
public void addContributor(Contributor contributor)
contributor
- a contributor object.public void addDeveloper(Developer developer)
developer
- a developer object.public void addLicense(License license)
license
- a license object.public void addMailingList(MailingList mailingList)
mailingList
- a mailingList object.public void addProfile(Profile profile)
profile
- a profile object.public String getArtifactId()
public Build getBuild()
public CiManagement getCiManagement()
public List<Contributor> getContributors()
public String getDescription()
public String getGroupId()
org.apache.maven
).public String getInceptionYear()
public IssueManagement getIssueManagement()
public List<MailingList> getMailingLists()
public String getModelEncoding()
public String getModelVersion()
public String getName()
public Organization getOrganization()
public String getPackaging()
jar
war
ear
pom
.
Plugins can create their own packaging, and
therefore their own packaging types,
so this list does not contain all possible
types.public Parent getParent()
public Prerequisites getPrerequisites()
public Scm getScm()
public String getUrl()
public String getVersion()
public void removeContributor(Contributor contributor)
contributor
- a contributor object.public void removeDeveloper(Developer developer)
developer
- a developer object.public void removeLicense(License license)
license
- a license object.public void removeMailingList(MailingList mailingList)
mailingList
- a mailingList object.public void removeProfile(Profile profile)
profile
- a profile object.public void setArtifactId(String artifactId)
artifactId
- a artifactId object.public void setBuild(Build build)
build
- a build object.public void setCiManagement(CiManagement ciManagement)
ciManagement
- a ciManagement object.public void setContributors(List<Contributor> contributors)
contributors
- a contributors object.public void setDescription(String description)
description
- a description object.public void setDevelopers(List<Developer> developers)
developers
- a developers object.public void setGroupId(String groupId)
org.apache.maven
).groupId
- a groupId object.public void setInceptionYear(String inceptionYear)
inceptionYear
- a inceptionYear object.public void setIssueManagement(IssueManagement issueManagement)
issueManagement
- a issueManagement object.public void setLicenses(List<License> licenses)
license
element, which
is then described by additional elements.
Projects should only list the license(s) that
applies to the project
and not the licenses that apply to dependencies.
If multiple licenses are listed, it is assumed
that the user can select
any of them, not that they must accept all.licenses
- a licenses object.public void setMailingLists(List<MailingList> mailingLists)
mailingLists
- a mailingLists object.public void setModelEncoding(String modelEncoding)
modelEncoding
- a modelEncoding object.public void setModelVersion(String modelVersion)
modelVersion
- a modelVersion object.public void setName(String name)
name
- a name object.public void setOrganization(Organization organization)
organization
- a organization object.public void setPackaging(String packaging)
jar
war
ear
pom
.
Plugins can create their own packaging, and
therefore their own packaging types,
so this list does not contain all possible
types.packaging
- a packaging object.public void setParent(Parent parent)
parent
- a parent object.public void setPrerequisites(Prerequisites prerequisites)
prerequisites
- a prerequisites object.public void setProfiles(List<Profile> profiles)
profiles
- a profiles object.public void setScm(Scm scm)
scm
- a scm object.public void setUrl(String url)
url
- a url object.public void setVersion(String version)
version
- a version object.public String getId()
groupId:artifactId:packaging:version
Copyright © 2001–2024 The Apache Software Foundation. All rights reserved.