|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.project.Project
Constructor Summary | |
Project()
Default constructor. |
|
Project(java.io.Reader in)
Constructor with prebuilt model. |
|
Project(java.lang.String path)
Constructor with prebuilt model. |
|
Project(java.net.URL url)
Constructor with prebuilt model. |
Method Summary | |
void |
addBranch(org.apache.maven.project.Branch branch)
|
void |
addContributor(org.apache.maven.project.Contributor contributor)
|
void |
addDependency(org.apache.maven.project.Dependency dependency)
Add a unique dependency for this project. |
void |
addDeveloper(org.apache.maven.project.Developer developer)
|
void |
addLicense(org.apache.maven.project.License license)
|
void |
addMailingList(org.apache.maven.project.MailingList mailingList)
|
void |
addPackageGroup(org.apache.maven.project.PackageGroup packageGroup)
|
void |
addProperty(java.lang.String s,
java.lang.String s1)
|
void |
addReport(java.lang.String s)
|
void |
addVersion(org.apache.maven.project.Version version)
Add a distribution to this project. |
void |
buildArtifactList()
Build the artifact list. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getArtifactDirectory()
|
java.lang.String |
getArtifactId()
Get the artifact id. |
java.util.List |
getArtifacts()
Get the atrifact attribute. |
java.util.List |
getBranches()
|
org.apache.maven.project.Build |
getBuild()
|
MavenJellyContext |
getContext()
Get the context attribute. |
java.util.List |
getContributors()
|
java.lang.String |
getCurrentVersion()
|
java.util.List |
getDependencies()
|
org.apache.maven.project.Dependency |
getDependency(java.lang.String depId)
Get an individual dependency by id. |
java.lang.String |
getDependencyClasspath()
Get the dependency classpath. |
java.lang.String |
getDependencyPath(java.lang.String depId)
Get an individual dependencies classpath entry. |
DependencyVerifier |
getDependencyVerifier()
Get the dependency verifier for this project. |
java.util.Set |
getDependentProjectIds()
Get the list of dependent projects ids. |
java.lang.String |
getDescription()
|
java.util.List |
getDevelopers()
|
java.lang.String |
getDistributionDirectory()
|
java.lang.String |
getDistributionSite()
|
java.lang.String |
getExtend()
|
java.io.File |
getFile()
Get the file this POM was derived from |
java.lang.String |
getGroupId()
|
java.lang.String |
getGumpRepositoryId()
|
java.lang.String |
getId()
|
java.lang.String |
getInceptionYear()
|
java.lang.String |
getIssueTrackingUrl()
|
java.util.List |
getLicenses()
|
java.lang.String |
getLogo()
|
java.util.List |
getMailingLists()
|
java.io.File |
getMavenXml()
|
java.lang.String |
getName()
|
org.apache.maven.project.Organization |
getOrganization()
|
java.lang.String |
getPackage()
|
java.util.List |
getPackageGroups()
|
Project |
getParent()
|
MavenJellyContext |
getPluginContext(java.lang.String pluginId)
Deprecated. use the tag instead |
java.lang.String |
getPomVersion()
|
java.lang.String |
getProjectAsString()
Create an XML string from the project. |
java.util.Properties |
getProperties()
|
java.util.List |
getReports()
|
org.apache.maven.project.Repository |
getRepository()
|
java.lang.String |
getShortDescription()
|
java.lang.String |
getSiteAddress()
|
java.lang.String |
getSiteDirectory()
|
java.lang.String |
getUrl()
|
org.apache.maven.project.Version |
getVersionById(java.lang.String versionId)
Return a distribution for this project. |
java.util.List |
getVersions()
|
int |
hashCode()
|
boolean |
hasMavenXml()
|
boolean |
hasParent()
Determine whether this project has a parent. |
boolean |
hasRepository()
Get flag to indicate the presence of a source repository. |
void |
initialize()
Initialize the project. |
boolean |
isPomCurrent()
Indicate whether the POM is of the latest version. |
java.lang.String |
legacyToDependencyKey(java.lang.String id)
|
static java.lang.String |
legacyToStandardId(java.lang.String id)
This is to support methods that are using the legacy form of the project id. |
(package private) static void |
mergeLists(java.util.List srcList,
java.util.List targetList)
|
void |
mergeParent(Project parent)
Setup inheritance from a parent project. |
java.io.File |
parentBasedir()
Get the parent's basedir. |
java.io.File |
parentMavenXml()
Get parent maven.xml file. |
void |
popContext()
|
void |
pushContext(MavenJellyContext context)
Push a new context onto the stack. |
void |
resolveIds()
|
void |
setArtifactId(java.lang.String s)
|
void |
setArtifacts(java.util.List artifactList)
Set the artifactList attribute. |
void |
setBranches(java.util.List list)
|
void |
setBuild(org.apache.maven.project.Build build)
|
void |
setContext(MavenJellyContext context)
Set the context attribute. |
void |
setContributors(java.util.List list)
|
void |
setCurrentVersion(java.lang.String s)
|
void |
setDependencies(java.util.List list)
|
void |
setDependencyPath(java.lang.String depId,
java.lang.String path)
Set an individual dependency's classpath entry. |
void |
setDependencyVerifier(DependencyVerifier dependencyVerifier)
Set the dependency verifier. |
void |
setDescription(java.lang.String s)
|
void |
setDevelopers(java.util.List list)
|
void |
setDistributionDirectory(java.lang.String s)
|
void |
setDistributionSite(java.lang.String s)
|
void |
setExtend(java.lang.String s)
|
void |
setFile(java.io.File file)
Set the file that this POM was derived from. |
void |
setGroupId(java.lang.String s)
|
void |
setGumpRepositoryId(java.lang.String s)
|
void |
setId(java.lang.String id)
|
void |
setInceptionYear(java.lang.String s)
|
void |
setIssueTrackingUrl(java.lang.String s)
|
void |
setLicenses(java.util.List list)
|
void |
setLogo(java.lang.String s)
|
void |
setMailingLists(java.util.List list)
|
void |
setName(java.lang.String s)
|
void |
setOrganization(org.apache.maven.project.Organization organization)
|
void |
setPackage(java.lang.String s)
|
void |
setPackageGroups(java.util.List list)
|
void |
setParent(Project parent)
Set the project that this one extends |
void |
setPomVersion(java.lang.String s)
|
void |
setProperties(java.util.Properties properties)
|
void |
setReports(java.util.List list)
|
void |
setRepository(org.apache.maven.project.Repository repository)
|
void |
setShortDescription(java.lang.String s)
|
void |
setSiteAddress(java.lang.String s)
|
void |
setSiteDirectory(java.lang.String s)
|
void |
setUrl(java.lang.String s)
|
void |
setVersions(java.util.List list)
|
static java.lang.String |
standardToLegacyId(java.lang.String id)
This method is to support methods are expecting legacy ids. |
java.lang.String |
toString()
|
void |
verifyDependencies()
Verify the dependencies for this project. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Project()
public Project(java.io.Reader in) throws java.lang.Exception
in
- the input reader
java.lang.Exception
- an error occured reading the filepublic Project(java.net.URL url) throws java.lang.Exception
url
- the input url
java.lang.Exception
- an error occured reading the filepublic Project(java.lang.String path) throws java.lang.Exception
path
- the input path
java.lang.Exception
- an error occured reading the fileMethod Detail |
public java.io.File getMavenXml()
public boolean hasMavenXml()
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getArtifactId()
public MavenJellyContext getPluginContext(java.lang.String pluginId) throws java.lang.Exception
pluginId
- Plugin name.
UnknownPluginException
- if the plugin could not be found
java.lang.Exception
public void setContext(MavenJellyContext context)
context
- the context to usepublic void pushContext(MavenJellyContext context)
context
- public void popContext()
public MavenJellyContext getContext()
public void setArtifacts(java.util.List artifactList)
artifactList
- list of artifacts for the projectpublic java.util.List getArtifacts()
public void setFile(java.io.File file)
file
- POM filepublic java.io.File getFile()
public Project getParent()
public boolean hasParent()
public void setParent(Project parent)
parent
- the parent projectpublic java.io.File parentBasedir()
public java.io.File parentMavenXml()
public java.lang.String getArtifactDirectory()
public void addDependency(org.apache.maven.project.Dependency dependency)
dependency
- Dependency for this project.static void mergeLists(java.util.List srcList, java.util.List targetList)
srcList
- source list to add items fromtargetList
- target list to add unique items topublic java.util.Set getDependentProjectIds()
public void setDependencyPath(java.lang.String depId, java.lang.String path)
depId
- Dependency id.path
- Classpath for the given dependency.public java.lang.String getDependencyPath(java.lang.String depId)
depId
- Dependency id.
public org.apache.maven.project.Dependency getDependency(java.lang.String depId)
depId
- Dependency id.
public boolean hasRepository()
true
if the project is part of a repository,
false
otherwisepublic boolean isPomCurrent()
true
if the pom version is the same as the
currently running version of maven specified by MavenConstants
,
or false
otherwisepublic org.apache.maven.project.Version getVersionById(java.lang.String versionId)
versionId
- the id of the version to return
public void initialize() throws java.io.IOException
java.io.IOException
- If an error occurs during project initialization.public void verifyDependencies() throws RepoConfigException, UnsatisfiedDependencyException, ChecksumVerificationException
RepoConfigException
- If an error occurs checking the local settings.
UnsatisfiedDependencyException
- If an error occurs due to missing exceptions.
ChecksumVerificationException
- if the downloaded files fail verificationpublic void setDependencyVerifier(DependencyVerifier dependencyVerifier)
dependencyVerifier
- Dependency Verifier.public DependencyVerifier getDependencyVerifier()
public java.lang.String getDependencyClasspath()
public void buildArtifactList()
public static java.lang.String legacyToStandardId(java.lang.String id)
id
- the legacy id to convert
public java.lang.String legacyToDependencyKey(java.lang.String id)
public static java.lang.String standardToLegacyId(java.lang.String id)
id
- the standard id to convert
public void mergeParent(Project parent)
parent
- the parent projectpublic void addBranch(org.apache.maven.project.Branch branch)
public void addContributor(org.apache.maven.project.Contributor contributor)
public void addDeveloper(org.apache.maven.project.Developer developer)
public void addLicense(org.apache.maven.project.License license)
public void addMailingList(org.apache.maven.project.MailingList mailingList)
public void addPackageGroup(org.apache.maven.project.PackageGroup packageGroup)
public void addProperty(java.lang.String s, java.lang.String s1)
public void addReport(java.lang.String s)
public java.util.List getBranches()
public org.apache.maven.project.Build getBuild()
public java.util.List getContributors()
public java.lang.String getCurrentVersion()
public java.util.List getDependencies()
public java.lang.String getDescription()
public java.util.List getDevelopers()
public java.lang.String getDistributionDirectory()
public java.lang.String getDistributionSite()
public java.lang.String getExtend()
public java.lang.String getGroupId()
public java.lang.String getGumpRepositoryId()
public java.lang.String getInceptionYear()
public java.lang.String getIssueTrackingUrl()
public java.util.List getLicenses()
public java.lang.String getLogo()
public java.util.List getMailingLists()
public java.lang.String getName()
public org.apache.maven.project.Organization getOrganization()
public java.lang.String getPackage()
public java.util.List getPackageGroups()
public java.lang.String getPomVersion()
public java.util.Properties getProperties()
public java.util.List getReports()
public org.apache.maven.project.Repository getRepository()
public java.lang.String getShortDescription()
public java.lang.String getSiteAddress()
public java.lang.String getSiteDirectory()
public java.lang.String getUrl()
public java.util.List getVersions()
public void setVersions(java.util.List list)
public void setArtifactId(java.lang.String s)
public void setBranches(java.util.List list)
public void setBuild(org.apache.maven.project.Build build)
public void setContributors(java.util.List list)
public void setCurrentVersion(java.lang.String s)
public void setDependencies(java.util.List list)
public void setDescription(java.lang.String s)
public void setDevelopers(java.util.List list)
public void setDistributionDirectory(java.lang.String s)
public void setDistributionSite(java.lang.String s)
public void setExtend(java.lang.String s)
public void setGroupId(java.lang.String s)
public void setGumpRepositoryId(java.lang.String s)
public void setInceptionYear(java.lang.String s)
public void setIssueTrackingUrl(java.lang.String s)
public void setLicenses(java.util.List list)
public void setLogo(java.lang.String s)
public void setMailingLists(java.util.List list)
public void setName(java.lang.String s)
public void setOrganization(org.apache.maven.project.Organization organization)
public void setPackage(java.lang.String s)
public void setPackageGroups(java.util.List list)
public void setPomVersion(java.lang.String s)
public void setProperties(java.util.Properties properties)
public void setReports(java.util.List list)
public void setRepository(org.apache.maven.project.Repository repository)
public void setShortDescription(java.lang.String s)
public void setSiteAddress(java.lang.String s)
public void setSiteDirectory(java.lang.String s)
public void setUrl(java.lang.String s)
public void addVersion(org.apache.maven.project.Version version)
version
- Distribution for this project.public void resolveIds()
public java.lang.String getProjectAsString() throws java.lang.Exception
java.lang.Exception
- FIXMEpublic java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |