public class MavenProject extends LocatedTreeImpl
<project> element is the root of the descriptor.
The following table lists all of the possible child elements.
Java class for Model complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Model">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<all>
<element name="modelVersion" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="parent" type="{http://maven.apache.org/POM/4.0.0}Parent" minOccurs="0"/>
<element name="groupId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="artifactId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="packaging" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="inceptionYear" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="organization" type="{http://maven.apache.org/POM/4.0.0}Organization" minOccurs="0"/>
<element name="licenses" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="license" type="{http://maven.apache.org/POM/4.0.0}License" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="developers" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="developer" type="{http://maven.apache.org/POM/4.0.0}Developer" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="contributors" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="contributor" type="{http://maven.apache.org/POM/4.0.0}Contributor" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="mailingLists" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="mailingList" type="{http://maven.apache.org/POM/4.0.0}MailingList" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="prerequisites" type="{http://maven.apache.org/POM/4.0.0}Prerequisites" minOccurs="0"/>
<element name="modules" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="module" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="scm" type="{http://maven.apache.org/POM/4.0.0}Scm" minOccurs="0"/>
<element name="issueManagement" type="{http://maven.apache.org/POM/4.0.0}IssueManagement" minOccurs="0"/>
<element name="ciManagement" type="{http://maven.apache.org/POM/4.0.0}CiManagement" minOccurs="0"/>
<element name="distributionManagement" type="{http://maven.apache.org/POM/4.0.0}DistributionManagement" minOccurs="0"/>
<element name="properties" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="dependencyManagement" type="{http://maven.apache.org/POM/4.0.0}DependencyManagement" minOccurs="0"/>
<element name="dependencies" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="dependency" type="{http://maven.apache.org/POM/4.0.0}Dependency" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="repositories" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="repository" type="{http://maven.apache.org/POM/4.0.0}Repository" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="pluginRepositories" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="pluginRepository" type="{http://maven.apache.org/POM/4.0.0}Repository" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="build" type="{http://maven.apache.org/POM/4.0.0}Build" minOccurs="0"/>
<element name="reports" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="reporting" type="{http://maven.apache.org/POM/4.0.0}Reporting" minOccurs="0"/>
<element name="profiles" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="profile" type="{http://maven.apache.org/POM/4.0.0}Profile" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</all>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
MavenProject.Contributors
Java class for anonymous complex type.
|
static class |
MavenProject.Dependencies
Java class for anonymous complex type.
|
static class |
MavenProject.Developers
Java class for anonymous complex type.
|
static class |
MavenProject.Licenses
Java class for anonymous complex type.
|
static class |
MavenProject.MailingLists
Java class for anonymous complex type.
|
static class |
MavenProject.Modules
Java class for anonymous complex type.
|
static class |
MavenProject.PluginRepositories
Java class for anonymous complex type.
|
static class |
MavenProject.Profiles
Java class for anonymous complex type.
|
static class |
MavenProject.Properties
Java class for anonymous complex type.
|
static class |
MavenProject.Reports
Java class for anonymous complex type.
|
static class |
MavenProject.Repositories
Java class for anonymous complex type.
|
endLocation, startLocation| Constructor and Description |
|---|
MavenProject() |
| Modifier and Type | Method and Description |
|---|---|
LocatedAttribute |
getArtifactId()
Gets the value of the artifactId property.
|
Build |
getBuild()
Gets the value of the build property.
|
CiManagement |
getCiManagement()
Gets the value of the ciManagement property.
|
MavenProject.Contributors |
getContributors()
Gets the value of the contributors property.
|
MavenProject.Dependencies |
getDependencies()
Gets the value of the dependencies property.
|
DependencyManagement |
getDependencyManagement()
Gets the value of the dependencyManagement property.
|
LocatedAttribute |
getDescription()
Gets the value of the description property.
|
MavenProject.Developers |
getDevelopers()
Gets the value of the developers property.
|
DistributionManagement |
getDistributionManagement()
Gets the value of the distributionManagement property.
|
LocatedAttribute |
getGroupId()
Gets the value of the groupId property.
|
LocatedAttribute |
getInceptionYear()
Gets the value of the inceptionYear property.
|
IssueManagement |
getIssueManagement()
Gets the value of the issueManagement property.
|
MavenProject.Licenses |
getLicenses()
Gets the value of the licenses property.
|
MavenProject.MailingLists |
getMailingLists()
Gets the value of the mailingLists property.
|
LocatedAttribute |
getModelVersion()
Gets the value of the modelVersion property.
|
MavenProject.Modules |
getModules()
Gets the value of the modules property.
|
LocatedAttribute |
getName()
Gets the value of the name property.
|
Organization |
getOrganization()
Gets the value of the organization property.
|
LocatedAttribute |
getPackaging()
Gets the value of the packaging property.
|
Parent |
getParent()
Gets the value of the parent property.
|
MavenProject.PluginRepositories |
getPluginRepositories()
Gets the value of the pluginRepositories property.
|
Prerequisites |
getPrerequisites()
Gets the value of the prerequisites property.
|
MavenProject.Profiles |
getProfiles()
Gets the value of the profiles property.
|
MavenProject.Properties |
getProperties()
Gets the value of the properties property.
|
Reporting |
getReporting()
Gets the value of the reporting property.
|
MavenProject.Reports |
getReports()
Gets the value of the reports property.
|
MavenProject.Repositories |
getRepositories()
Gets the value of the repositories property.
|
Scm |
getScm()
Gets the value of the scm property.
|
LocatedAttribute |
getUrl()
Gets the value of the url property.
|
LocatedAttribute |
getVersion()
Gets the value of the version property.
|
void |
setArtifactId(LocatedAttribute value)
Sets the value of the artifactId property.
|
void |
setBuild(Build value)
Sets the value of the build property.
|
void |
setCiManagement(CiManagement value)
Sets the value of the ciManagement property.
|
void |
setContributors(MavenProject.Contributors value)
Sets the value of the contributors property.
|
void |
setDependencies(MavenProject.Dependencies value)
Sets the value of the dependencies property.
|
void |
setDependencyManagement(DependencyManagement value)
Sets the value of the dependencyManagement property.
|
void |
setDescription(LocatedAttribute value)
Sets the value of the description property.
|
void |
setDevelopers(MavenProject.Developers value)
Sets the value of the developers property.
|
void |
setDistributionManagement(DistributionManagement value)
Sets the value of the distributionManagement property.
|
void |
setGroupId(LocatedAttribute value)
Sets the value of the groupId property.
|
void |
setInceptionYear(LocatedAttribute value)
Sets the value of the inceptionYear property.
|
void |
setIssueManagement(IssueManagement value)
Sets the value of the issueManagement property.
|
void |
setLicenses(MavenProject.Licenses value)
Sets the value of the licenses property.
|
void |
setMailingLists(MavenProject.MailingLists value)
Sets the value of the mailingLists property.
|
void |
setModelVersion(LocatedAttribute value)
Sets the value of the modelVersion property.
|
void |
setModules(MavenProject.Modules value)
Sets the value of the modules property.
|
void |
setName(LocatedAttribute value)
Sets the value of the name property.
|
void |
setOrganization(Organization value)
Sets the value of the organization property.
|
void |
setPackaging(LocatedAttribute value)
Sets the value of the packaging property.
|
void |
setParent(Parent value)
Sets the value of the parent property.
|
void |
setPluginRepositories(MavenProject.PluginRepositories value)
Sets the value of the pluginRepositories property.
|
void |
setPrerequisites(Prerequisites value)
Sets the value of the prerequisites property.
|
void |
setProfiles(MavenProject.Profiles value)
Sets the value of the profiles property.
|
void |
setProperties(MavenProject.Properties value)
Sets the value of the properties property.
|
void |
setReporting(Reporting value)
Sets the value of the reporting property.
|
void |
setReports(MavenProject.Reports value)
Sets the value of the reports property.
|
void |
setRepositories(MavenProject.Repositories value)
Sets the value of the repositories property.
|
void |
setScm(Scm value)
Sets the value of the scm property.
|
void |
setUrl(LocatedAttribute value)
Sets the value of the url property.
|
void |
setVersion(LocatedAttribute value)
Sets the value of the version property.
|
endLocation, setEndLocation, setStartLocation, startLocationprotected LocatedAttribute modelVersion
protected Parent parent
protected LocatedAttribute groupId
protected LocatedAttribute artifactId
protected LocatedAttribute version
protected LocatedAttribute packaging
protected LocatedAttribute name
protected LocatedAttribute description
protected LocatedAttribute url
protected LocatedAttribute inceptionYear
protected Organization organization
protected MavenProject.Licenses licenses
protected MavenProject.Developers developers
protected MavenProject.Contributors contributors
protected MavenProject.MailingLists mailingLists
protected Prerequisites prerequisites
protected MavenProject.Modules modules
protected Scm scm
protected IssueManagement issueManagement
protected CiManagement ciManagement
protected DistributionManagement distributionManagement
protected MavenProject.Properties properties
protected DependencyManagement dependencyManagement
protected MavenProject.Dependencies dependencies
protected MavenProject.Repositories repositories
protected MavenProject.PluginRepositories pluginRepositories
protected Build build
protected MavenProject.Reports reports
protected Reporting reporting
protected MavenProject.Profiles profiles
public LocatedAttribute getModelVersion()
Stringpublic void setModelVersion(LocatedAttribute value)
value - allowed object is
Stringpublic Parent getParent()
Parentpublic void setParent(Parent value)
value - allowed object is
Parentpublic LocatedAttribute getGroupId()
Stringpublic void setGroupId(LocatedAttribute value)
value - allowed object is
Stringpublic LocatedAttribute getArtifactId()
Stringpublic void setArtifactId(LocatedAttribute value)
value - allowed object is
Stringpublic LocatedAttribute getVersion()
Stringpublic void setVersion(LocatedAttribute value)
value - allowed object is
Stringpublic LocatedAttribute getPackaging()
Stringpublic void setPackaging(LocatedAttribute value)
value - allowed object is
Stringpublic LocatedAttribute getName()
Stringpublic void setName(LocatedAttribute value)
value - allowed object is
Stringpublic LocatedAttribute getDescription()
Stringpublic void setDescription(LocatedAttribute value)
value - allowed object is
Stringpublic LocatedAttribute getUrl()
Stringpublic void setUrl(LocatedAttribute value)
value - allowed object is
Stringpublic LocatedAttribute getInceptionYear()
Stringpublic void setInceptionYear(LocatedAttribute value)
value - allowed object is
Stringpublic Organization getOrganization()
Organizationpublic void setOrganization(Organization value)
value - allowed object is
Organizationpublic MavenProject.Licenses getLicenses()
MavenProject.Licensespublic void setLicenses(MavenProject.Licenses value)
value - allowed object is
MavenProject.Licensespublic MavenProject.Developers getDevelopers()
MavenProject.Developerspublic void setDevelopers(MavenProject.Developers value)
value - allowed object is
MavenProject.Developerspublic MavenProject.Contributors getContributors()
MavenProject.Contributorspublic void setContributors(MavenProject.Contributors value)
value - allowed object is
MavenProject.Contributorspublic MavenProject.MailingLists getMailingLists()
MavenProject.MailingListspublic void setMailingLists(MavenProject.MailingLists value)
value - allowed object is
MavenProject.MailingListspublic Prerequisites getPrerequisites()
Prerequisitespublic void setPrerequisites(Prerequisites value)
value - allowed object is
Prerequisitespublic MavenProject.Modules getModules()
MavenProject.Modulespublic void setModules(MavenProject.Modules value)
value - allowed object is
MavenProject.Modulespublic void setScm(Scm value)
value - allowed object is
Scmpublic IssueManagement getIssueManagement()
IssueManagementpublic void setIssueManagement(IssueManagement value)
value - allowed object is
IssueManagementpublic CiManagement getCiManagement()
CiManagementpublic void setCiManagement(CiManagement value)
value - allowed object is
CiManagementpublic DistributionManagement getDistributionManagement()
DistributionManagementpublic void setDistributionManagement(DistributionManagement value)
value - allowed object is
DistributionManagementpublic MavenProject.Properties getProperties()
MavenProject.Propertiespublic void setProperties(MavenProject.Properties value)
value - allowed object is
MavenProject.Propertiespublic DependencyManagement getDependencyManagement()
DependencyManagementpublic void setDependencyManagement(DependencyManagement value)
value - allowed object is
DependencyManagementpublic MavenProject.Dependencies getDependencies()
MavenProject.Dependenciespublic void setDependencies(MavenProject.Dependencies value)
value - allowed object is
MavenProject.Dependenciespublic MavenProject.Repositories getRepositories()
MavenProject.Repositoriespublic void setRepositories(MavenProject.Repositories value)
value - allowed object is
MavenProject.Repositoriespublic MavenProject.PluginRepositories getPluginRepositories()
MavenProject.PluginRepositoriespublic void setPluginRepositories(MavenProject.PluginRepositories value)
value - allowed object is
MavenProject.PluginRepositoriespublic Build getBuild()
Buildpublic void setBuild(Build value)
value - allowed object is
Buildpublic MavenProject.Reports getReports()
MavenProject.Reportspublic void setReports(MavenProject.Reports value)
value - allowed object is
MavenProject.Reportspublic Reporting getReporting()
Reportingpublic void setReporting(Reporting value)
value - allowed object is
Reportingpublic MavenProject.Profiles getProfiles()
MavenProject.Profilespublic void setProfiles(MavenProject.Profiles value)
value - allowed object is
MavenProject.ProfilesCopyright © 2012–2016 SonarSource. All rights reserved.