Package org.apache.maven.model
Class Model
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.ModelBase
org.apache.maven.model.Model
- All Implemented Interfaces:
- Serializable,- Cloneable,- InputLocationTracker
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.maven.model.BaseObjectBaseObject.ChildrenTracking
- 
Field SummaryFields inherited from class org.apache.maven.model.BaseObjectchildrenTracking, delegate
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddContributor(Contributor contributor) voidaddDeveloper(Developer developer) voidaddLicense(License license) voidaddMailingList(MailingList mailingList) voidaddProfile(Profile profile) clone()booleangetBuild()getId()getLocation(Object key) Gets the location of the specified field in the input source.getName()Deprecated.Gets the POM file for the corresponding project (if any).Deprecated.Gets the base directory for the corresponding project (if any).getScm()getUrl()inthashCode()booleanmodelToApiV3(List<Model> list) modelToApiV4(List<Model> list) voidremoveContributor(Contributor contributor) voidremoveDeveloper(Developer developer) voidremoveLicense(License license) voidremoveMailingList(MailingList mailingList) voidremoveProfile(Profile profile) protected booleanvoidsetArtifactId(String artifactId) voidvoidsetChildProjectUrlInheritAppendPath(boolean childProjectUrlInheritAppendPath) voidsetChildProjectUrlInheritAppendPath(String childProjectUrlInheritAppendPath) voidsetCiManagement(CiManagement ciManagement) voidsetContributors(List<Contributor> contributors) voidsetDescription(String description) voidsetDevelopers(List<Developer> developers) voidsetGroupId(String groupId) voidsetInceptionYear(String inceptionYear) voidsetIssueManagement(IssueManagement issueManagement) voidsetLicenses(List<License> licenses) voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetMailingLists(List<MailingList> mailingLists) voidsetModelEncoding(String modelEncoding) voidsetModelVersion(String modelVersion) voidvoidsetOrganization(Organization organization) voidsetPackaging(String packaging) voidvoidsetPomFile(File pomFile) Deprecated.voidsetPomPath(Path pomPath) voidsetPrerequisites(Prerequisites prerequisites) voidsetProfiles(List<Profile> profiles) voidvoidvoidsetVersion(String version) toString()Methods inherited from class org.apache.maven.model.ModelBaseaddDependency, addModule, addPluginRepository, addProperty, addRepository, getDependencies, getDependencyManagement, getDistributionManagement, getModules, getPluginRepositories, getProperties, getReporting, getRepositories, modelBaseToApiV3, modelBaseToApiV4, removeDependency, removeModule, removePluginRepository, removeRepository, setDependencies, setDependencyManagement, setDistributionManagement, setModules, setPluginRepositories, setProperties, setReporting, setRepositoriesMethods inherited from class org.apache.maven.model.BaseObjectupdate
- 
Constructor Details- 
Modelpublic Model()
- 
Model
- 
Model
 
- 
- 
Method Details- 
clone
- 
getDelegate- Overrides:
- getDelegatein class- ModelBase
 
- 
equals
- 
hashCodepublic int hashCode()
- 
getModelEncoding
- 
getModelVersion
- 
setModelVersion
- 
getParent
- 
setParent
- 
getGroupId
- 
setGroupId
- 
getArtifactId
- 
setArtifactId
- 
getVersion
- 
setVersion
- 
getPackaging
- 
setPackaging
- 
getName
- 
setName
- 
getDescription
- 
setDescription
- 
getUrl
- 
setUrl
- 
getChildProjectUrlInheritAppendPath
- 
setChildProjectUrlInheritAppendPath
- 
getInceptionYear
- 
setInceptionYear
- 
getOrganization
- 
setOrganization
- 
getLicenses
- 
setLicenses
- 
addLicense
- 
removeLicense
- 
getDevelopers
- 
setDevelopers
- 
addDeveloper
- 
removeDeveloper
- 
getContributors
- 
setContributors
- 
addContributor
- 
removeContributor
- 
getMailingLists
- 
setMailingLists
- 
addMailingList
- 
removeMailingList
- 
getPrerequisites
- 
setPrerequisites
- 
getScm
- 
setScm
- 
getIssueManagement
- 
setIssueManagement
- 
getCiManagement
- 
setCiManagement
- 
getBuild
- 
setBuild
- 
getProfiles
- 
setProfiles
- 
addProfile
- 
removeProfile
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- ModelBase
- Parameters:
- key- The key of the field, must not be- null.
- Returns:
- The location of the field in the input source or
 nullif unknown.
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Overrides:
- setLocationin class- ModelBase
- Parameters:
- key- The key of the field, must not be- null.
- location- The location of the field, may be- null.
 
- 
replace
- 
modelToApiV4
- 
modelToApiV3
- 
getPomFileDeprecated.Gets the POM file for the corresponding project (if any).- Returns:
- The POM file from which this model originated or nullif this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
 
- 
setPomFileDeprecated.
- 
getPomPathGets the POM file for the corresponding project (if any).- Returns:
- The POM file from which this model originated or nullif this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
 
- 
setPomPath
- 
setModelEncoding
- 
getProjectDirectoryDeprecated.Gets the base directory for the corresponding project (if any).- Returns:
- The base directory for the corresponding project or nullif this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
 
- 
getProjectDirectoryPathGets the base directory for the corresponding project (if any).- Returns:
- The base directory for the corresponding project or nullif this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
 
- 
getId- Returns:
- the model id as groupId:artifactId:packaging:version
 
- 
toString
- 
isChildProjectUrlInheritAppendPathpublic boolean isChildProjectUrlInheritAppendPath()
- 
setChildProjectUrlInheritAppendPathpublic void setChildProjectUrlInheritAppendPath(boolean childProjectUrlInheritAppendPath) 
 
-