org_scala_tools_maven_model
Class MavenProjectAdapter
java.lang.Object
org_scala_tools_maven_model.MavenProjectAdapter
public class MavenProjectAdapter
- extends Object
Method Summary |
void |
addAttachedArtifact(org.apache.maven.artifact.Artifact artifact)
|
void |
addCompileSourceRoot(String path)
|
void |
addContributor(org.apache.maven.model.Contributor contributor)
|
void |
addDeveloper(org.apache.maven.model.Developer developer)
|
void |
addLicense(org.apache.maven.model.License license)
|
void |
addMailingList(org.apache.maven.model.MailingList mailingList)
|
void |
addPlugin(org.apache.maven.model.Plugin plugin)
|
void |
addProjectReference(org.apache.maven.project.MavenProject project)
|
void |
addResource(org.apache.maven.model.Resource resource)
|
void |
addScriptSourceRoot(String path)
|
void |
addTestCompileSourceRoot(String path)
|
void |
addTestResource(org.apache.maven.model.Resource testResource)
|
String |
apply(String key)
Returns the property identified by the string. |
String |
apply(String key,
String defaultValue)
|
Set<org.apache.maven.artifact.Artifact> |
createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
String inheritedScope,
org.apache.maven.artifact.resolver.filter.ArtifactFilter dependencyFilter)
|
boolean |
equals(Object arg0)
|
List<org.apache.maven.model.Profile> |
getActiveProfiles()
|
org.apache.maven.artifact.Artifact |
getArtifact()
|
String |
getArtifactId()
|
Map<String,org.apache.maven.artifact.Artifact> |
getArtifactMap()
|
Set<org.apache.maven.artifact.Artifact> |
getArtifacts()
|
List<org.apache.maven.artifact.Artifact> |
getAttachedArtifacts()
|
File |
getBasedir()
|
org.apache.maven.model.Build |
getBuild()
|
List |
getBuildExtensions()
|
List<org.apache.maven.model.Plugin> |
getBuildPlugins()
|
org.apache.maven.model.CiManagement |
getCiManagement()
|
List<org.apache.maven.project.MavenProject> |
getCollectedProjects()
|
List<org.apache.maven.artifact.Artifact> |
getCompileArtifacts()
|
List<String> |
getCompileClasspathElements()
|
List<org.apache.maven.model.Dependency> |
getCompileDependencies()
|
List<String> |
getCompileSourceRoots()
|
List<org.apache.maven.model.Contributor> |
getContributors()
|
String |
getDefaultGoal()
|
List<org.apache.maven.model.Dependency> |
getDependencies()
|
Set<org.apache.maven.artifact.Artifact> |
getDependencyArtifacts()
|
org.apache.maven.model.DependencyManagement |
getDependencyManagement()
|
String |
getDescription()
|
List<org.apache.maven.model.Developer> |
getDevelopers()
|
org.apache.maven.model.DistributionManagement |
getDistributionManagement()
|
org.apache.maven.artifact.repository.ArtifactRepository |
getDistributionManagementArtifactRepository()
|
org.apache.maven.project.MavenProject |
getExecutionProject()
|
Map<String,org.apache.maven.artifact.Artifact> |
getExtensionArtifactMap()
|
Set<org.apache.maven.artifact.Artifact> |
getExtensionArtifacts()
|
File |
getFile()
|
List<String> |
getFilters()
|
org.codehaus.plexus.util.xml.Xpp3Dom |
getGoalConfiguration(String arg0,
String arg1,
String arg2,
String arg3)
|
String |
getGroupId()
|
String |
getId()
|
String |
getInceptionYear()
|
org.apache.maven.model.IssueManagement |
getIssueManagement()
|
List<org.apache.maven.model.License> |
getLicenses()
|
List<org.apache.maven.model.MailingList> |
getMailingLists()
|
Map |
getManagedVersionMap()
|
org.apache.maven.model.Model |
getModel()
|
String |
getModelVersion()
|
String |
getModulePathAdjustment(org.apache.maven.project.MavenProject arg0)
|
List<String> |
getModules()
|
String |
getName()
|
org.apache.maven.model.Organization |
getOrganization()
|
org.apache.maven.model.Model |
getOriginalModel()
|
String |
getPackaging()
|
org.apache.maven.project.MavenProject |
getParent()
|
org.apache.maven.artifact.Artifact |
getParentArtifact()
|
Map<String,org.apache.maven.artifact.Artifact> |
getPluginArtifactMap()
|
List<org.apache.maven.artifact.repository.ArtifactRepository> |
getPluginArtifactRepositories()
|
Set<org.apache.maven.artifact.Artifact> |
getPluginArtifacts()
|
org.apache.maven.model.PluginManagement |
getPluginManagement()
|
List<org.apache.maven.model.Repository> |
getPluginRepositories()
|
org.apache.maven.model.Prerequisites |
getPrerequisites()
|
Map<String,org.apache.maven.project.MavenProject> |
getProjectReferences()
|
Properties |
getProperties()
|
List<org.apache.maven.artifact.repository.ArtifactRepository> |
getRemoteArtifactRepositories()
|
Map<String,org.apache.maven.artifact.Artifact> |
getReportArtifactMap()
|
Set<org.apache.maven.artifact.Artifact> |
getReportArtifacts()
|
org.codehaus.plexus.util.xml.Xpp3Dom |
getReportConfiguration(String arg0,
String arg1,
String arg2)
|
org.apache.maven.model.Reporting |
getReporting()
|
List<org.apache.maven.model.Plugin> |
getReportPlugins()
|
List<org.apache.maven.model.Repository> |
getRepositories()
|
List<org.apache.maven.model.Resource> |
getResources()
|
List<org.apache.maven.artifact.Artifact> |
getRuntimeArtifacts()
|
List<String> |
getRuntimeClasspathElements()
|
List<org.apache.maven.model.Dependency> |
getRuntimeDependencies()
|
org.apache.maven.model.Scm |
getScm()
|
List<String> |
getScriptSourceRoots()
|
List<org.apache.maven.artifact.Artifact> |
getSystemArtifacts()
|
List<String> |
getSystemClasspathElements()
|
List<org.apache.maven.model.Dependency> |
getSystemDependencies()
|
List<org.apache.maven.artifact.Artifact> |
getTestArtifacts()
|
List<String> |
getTestClasspathElements()
|
List<String> |
getTestCompileSourceRoots()
|
List<org.apache.maven.model.Dependency> |
getTestDependencies()
|
List<org.apache.maven.model.Resource> |
getTestResources()
|
String |
getUrl()
|
String |
getVersion()
|
org.apache.maven.project.MavenProject |
getWrapped()
|
int |
hashCode()
|
boolean |
hasParent()
|
void |
injectPluginManagementInfo(org.apache.maven.model.Plugin arg0)
|
boolean |
isExecutionRoot()
|
org.apache.maven.artifact.Artifact |
replaceWithActiveArtifact(org.apache.maven.artifact.Artifact arg0)
|
void |
setActiveProfiles(List<org.apache.maven.model.Profile> activeProfiles)
|
void |
setArtifact(org.apache.maven.artifact.Artifact artifact)
|
void |
setArtifactId(String artifactId)
|
void |
setArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
|
void |
setBuild(org.apache.maven.model.Build build)
|
void |
setCiManagement(org.apache.maven.model.CiManagement ciManagement)
|
void |
setCollectedProjects(List<org.apache.maven.project.MavenProject> collectedProjects)
|
void |
setContributors(List<org.apache.maven.model.Contributor> contributors)
|
void |
setDependencies(List dependencies)
|
void |
setDependencyArtifacts(Set dependencyArtifacts)
|
void |
setDescription(String description)
|
void |
setDevelopers(List developers)
|
void |
setDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement)
|
void |
setExecutionProject(org.apache.maven.project.MavenProject executionProject)
|
void |
setExecutionRoot(boolean executionRoot)
|
void |
setExtensionArtifacts(Set extensionArtifacts)
|
void |
setFile(File file)
|
void |
setGroupId(String groupId)
|
void |
setInceptionYear(String inceptionYear)
|
void |
setIssueManagement(org.apache.maven.model.IssueManagement issueManagement)
|
void |
setLicenses(List licenses)
|
void |
setMailingLists(List mailingLists)
|
void |
setManagedVersionMap(Map map)
|
void |
setModelVersion(String pomVersion)
|
void |
setName(String name)
|
void |
setOrganization(org.apache.maven.model.Organization organization)
|
void |
setOriginalModel(org.apache.maven.model.Model originalModel)
|
void |
setPackaging(String packaging)
|
void |
setParent(org.apache.maven.project.MavenProject parent)
|
void |
setParentArtifact(org.apache.maven.artifact.Artifact parentArtifact)
|
void |
setPluginArtifactRepositories(List pluginArtifactRepositories)
|
void |
setPluginArtifacts(Set pluginArtifacts)
|
void |
setReleaseArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository releaseArtifactRepository)
|
void |
setRemoteArtifactRepositories(List remoteArtifactRepositories)
|
void |
setReportArtifacts(Set reportArtifacts)
|
void |
setReporting(org.apache.maven.model.Reporting reporting)
|
void |
setScm(org.apache.maven.model.Scm scm)
|
void |
setSnapshotArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository snapshotArtifactRepository)
|
void |
setUrl(String url)
|
void |
setVersion(String version)
|
String |
toString()
|
void |
update(String key,
boolean value)
|
void |
update(String key,
byte value)
|
void |
update(String key,
char value)
|
void |
update(String key,
double value)
|
void |
update(String key,
float value)
|
void |
update(String key,
int value)
|
void |
update(String key,
long value)
|
void |
update(String key,
String value)
|
void |
writeModel(Writer writer)
|
void |
writeOriginalModel(Writer writer)
|
MavenProjectAdapter
public MavenProjectAdapter(org.apache.maven.project.MavenProject project)
getActiveProfiles
public List<org.apache.maven.model.Profile> getActiveProfiles()
getArtifactMap
public Map<String,org.apache.maven.artifact.Artifact> getArtifactMap()
getArtifacts
public Set<org.apache.maven.artifact.Artifact> getArtifacts()
getAttachedArtifacts
public List<org.apache.maven.artifact.Artifact> getAttachedArtifacts()
getBuildPlugins
public List<org.apache.maven.model.Plugin> getBuildPlugins()
getCollectedProjects
public List<org.apache.maven.project.MavenProject> getCollectedProjects()
getCompileArtifacts
public List<org.apache.maven.artifact.Artifact> getCompileArtifacts()
getCompileClasspathElements
public List<String> getCompileClasspathElements()
throws org.apache.maven.artifact.DependencyResolutionRequiredException
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
getCompileDependencies
public List<org.apache.maven.model.Dependency> getCompileDependencies()
getCompileSourceRoots
public List<String> getCompileSourceRoots()
getContributors
public List<org.apache.maven.model.Contributor> getContributors()
getDependencies
public List<org.apache.maven.model.Dependency> getDependencies()
getDependencyArtifacts
public Set<org.apache.maven.artifact.Artifact> getDependencyArtifacts()
getDevelopers
public List<org.apache.maven.model.Developer> getDevelopers()
getExtensionArtifactMap
public Map<String,org.apache.maven.artifact.Artifact> getExtensionArtifactMap()
getExtensionArtifacts
public Set<org.apache.maven.artifact.Artifact> getExtensionArtifacts()
getFilters
public List<String> getFilters()
getLicenses
public List<org.apache.maven.model.License> getLicenses()
getMailingLists
public List<org.apache.maven.model.MailingList> getMailingLists()
getManagedVersionMap
public Map getManagedVersionMap()
getModules
public List<String> getModules()
getPluginArtifactMap
public Map<String,org.apache.maven.artifact.Artifact> getPluginArtifactMap()
getPluginArtifactRepositories
public List<org.apache.maven.artifact.repository.ArtifactRepository> getPluginArtifactRepositories()
getPluginArtifacts
public Set<org.apache.maven.artifact.Artifact> getPluginArtifacts()
getPluginRepositories
public List<org.apache.maven.model.Repository> getPluginRepositories()
getProjectReferences
public Map<String,org.apache.maven.project.MavenProject> getProjectReferences()
getRemoteArtifactRepositories
public List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteArtifactRepositories()
getReportArtifactMap
public Map<String,org.apache.maven.artifact.Artifact> getReportArtifactMap()
getReportArtifacts
public Set<org.apache.maven.artifact.Artifact> getReportArtifacts()
getReportPlugins
public List<org.apache.maven.model.Plugin> getReportPlugins()
getRepositories
public List<org.apache.maven.model.Repository> getRepositories()
getResources
public List<org.apache.maven.model.Resource> getResources()
getRuntimeArtifacts
public List<org.apache.maven.artifact.Artifact> getRuntimeArtifacts()
getRuntimeClasspathElements
public List<String> getRuntimeClasspathElements()
throws org.apache.maven.artifact.DependencyResolutionRequiredException
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
getRuntimeDependencies
public List<org.apache.maven.model.Dependency> getRuntimeDependencies()
getScriptSourceRoots
public List<String> getScriptSourceRoots()
getSystemArtifacts
public List<org.apache.maven.artifact.Artifact> getSystemArtifacts()
getSystemClasspathElements
public List<String> getSystemClasspathElements()
throws org.apache.maven.artifact.DependencyResolutionRequiredException
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
getSystemDependencies
public List<org.apache.maven.model.Dependency> getSystemDependencies()
getTestArtifacts
public List<org.apache.maven.artifact.Artifact> getTestArtifacts()
getTestClasspathElements
public List<String> getTestClasspathElements()
throws org.apache.maven.artifact.DependencyResolutionRequiredException
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
getTestCompileSourceRoots
public List<String> getTestCompileSourceRoots()
getTestDependencies
public List<org.apache.maven.model.Dependency> getTestDependencies()
getTestResources
public List<org.apache.maven.model.Resource> getTestResources()
apply
public String apply(String key)
- Returns the property identified by the string. Multiple objects are
checked to resolve the property:
- The system properties (System.getProperty(key))
- The environment properties (System.getenv(key))
- The project properties (project.getProperty(key))
-
The "standard" properties that one can reference in the pom. IE
artifactId, build.directory, etc... Note: If the variable starts with
project it may be dropped It is recommended that instead of using this
method that you use get... (getArtifactId(),
getBuild().getBuildDirectory)
first checked, then Environment variables, then the Project properties
- Parameters:
key
-
- Returns:
apply
public String apply(String key,
String defaultValue)
update
public void update(String key,
String value)
update
public void update(String key,
int value)
update
public void update(String key,
boolean value)
update
public void update(String key,
double value)
update
public void update(String key,
long value)
update
public void update(String key,
char value)
update
public void update(String key,
float value)
update
public void update(String key,
byte value)
addAttachedArtifact
public void addAttachedArtifact(org.apache.maven.artifact.Artifact artifact)
addCompileSourceRoot
public void addCompileSourceRoot(String path)
addContributor
public void addContributor(org.apache.maven.model.Contributor contributor)
addDeveloper
public void addDeveloper(org.apache.maven.model.Developer developer)
addLicense
public void addLicense(org.apache.maven.model.License license)
addMailingList
public void addMailingList(org.apache.maven.model.MailingList mailingList)
addPlugin
public void addPlugin(org.apache.maven.model.Plugin plugin)
addProjectReference
public void addProjectReference(org.apache.maven.project.MavenProject project)
addResource
public void addResource(org.apache.maven.model.Resource resource)
addScriptSourceRoot
public void addScriptSourceRoot(String path)
addTestCompileSourceRoot
public void addTestCompileSourceRoot(String path)
addTestResource
public void addTestResource(org.apache.maven.model.Resource testResource)
createArtifacts
public Set<org.apache.maven.artifact.Artifact> createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
String inheritedScope,
org.apache.maven.artifact.resolver.filter.ArtifactFilter dependencyFilter)
throws org.apache.maven.project.artifact.InvalidDependencyVersionException
- Throws:
org.apache.maven.project.artifact.InvalidDependencyVersionException
equals
public boolean equals(Object arg0)
- Overrides:
equals
in class Object
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
getArtifactId
public String getArtifactId()
getBasedir
public File getBasedir()
getBuild
public org.apache.maven.model.Build getBuild()
getBuildExtensions
public List getBuildExtensions()
getCiManagement
public org.apache.maven.model.CiManagement getCiManagement()
getDefaultGoal
public String getDefaultGoal()
getDependencyManagement
public org.apache.maven.model.DependencyManagement getDependencyManagement()
getDescription
public String getDescription()
getDistributionManagement
public org.apache.maven.model.DistributionManagement getDistributionManagement()
getDistributionManagementArtifactRepository
public org.apache.maven.artifact.repository.ArtifactRepository getDistributionManagementArtifactRepository()
getExecutionProject
public org.apache.maven.project.MavenProject getExecutionProject()
getFile
public File getFile()
getGoalConfiguration
public org.codehaus.plexus.util.xml.Xpp3Dom getGoalConfiguration(String arg0,
String arg1,
String arg2,
String arg3)
getGroupId
public String getGroupId()
getId
public String getId()
getInceptionYear
public String getInceptionYear()
getIssueManagement
public org.apache.maven.model.IssueManagement getIssueManagement()
getModel
public org.apache.maven.model.Model getModel()
getModelVersion
public String getModelVersion()
getModulePathAdjustment
public String getModulePathAdjustment(org.apache.maven.project.MavenProject arg0)
throws IOException
- Throws:
IOException
getName
public String getName()
getOrganization
public org.apache.maven.model.Organization getOrganization()
getOriginalModel
public org.apache.maven.model.Model getOriginalModel()
getPackaging
public String getPackaging()
getParent
public org.apache.maven.project.MavenProject getParent()
getParentArtifact
public org.apache.maven.artifact.Artifact getParentArtifact()
getPluginManagement
public org.apache.maven.model.PluginManagement getPluginManagement()
getPrerequisites
public org.apache.maven.model.Prerequisites getPrerequisites()
getProperties
public Properties getProperties()
getReportConfiguration
public org.codehaus.plexus.util.xml.Xpp3Dom getReportConfiguration(String arg0,
String arg1,
String arg2)
getReporting
public org.apache.maven.model.Reporting getReporting()
getScm
public org.apache.maven.model.Scm getScm()
getUrl
public String getUrl()
getVersion
public String getVersion()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
hasParent
public boolean hasParent()
injectPluginManagementInfo
public void injectPluginManagementInfo(org.apache.maven.model.Plugin arg0)
isExecutionRoot
public boolean isExecutionRoot()
replaceWithActiveArtifact
public org.apache.maven.artifact.Artifact replaceWithActiveArtifact(org.apache.maven.artifact.Artifact arg0)
setActiveProfiles
public void setActiveProfiles(List<org.apache.maven.model.Profile> activeProfiles)
setArtifact
public void setArtifact(org.apache.maven.artifact.Artifact artifact)
setArtifactId
public void setArtifactId(String artifactId)
setArtifacts
public void setArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
setBuild
public void setBuild(org.apache.maven.model.Build build)
setCiManagement
public void setCiManagement(org.apache.maven.model.CiManagement ciManagement)
setCollectedProjects
public void setCollectedProjects(List<org.apache.maven.project.MavenProject> collectedProjects)
setContributors
public void setContributors(List<org.apache.maven.model.Contributor> contributors)
setDependencies
public void setDependencies(List dependencies)
setDependencyArtifacts
public void setDependencyArtifacts(Set dependencyArtifacts)
setDescription
public void setDescription(String description)
setDevelopers
public void setDevelopers(List developers)
setDistributionManagement
public void setDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement)
setExecutionProject
public void setExecutionProject(org.apache.maven.project.MavenProject executionProject)
setExecutionRoot
public void setExecutionRoot(boolean executionRoot)
setExtensionArtifacts
public void setExtensionArtifacts(Set extensionArtifacts)
setFile
public void setFile(File file)
setGroupId
public void setGroupId(String groupId)
setInceptionYear
public void setInceptionYear(String inceptionYear)
setIssueManagement
public void setIssueManagement(org.apache.maven.model.IssueManagement issueManagement)
setLicenses
public void setLicenses(List licenses)
setMailingLists
public void setMailingLists(List mailingLists)
setManagedVersionMap
public void setManagedVersionMap(Map map)
setModelVersion
public void setModelVersion(String pomVersion)
setName
public void setName(String name)
setOrganization
public void setOrganization(org.apache.maven.model.Organization organization)
setOriginalModel
public void setOriginalModel(org.apache.maven.model.Model originalModel)
setPackaging
public void setPackaging(String packaging)
setParent
public void setParent(org.apache.maven.project.MavenProject parent)
setParentArtifact
public void setParentArtifact(org.apache.maven.artifact.Artifact parentArtifact)
setPluginArtifactRepositories
public void setPluginArtifactRepositories(List pluginArtifactRepositories)
setPluginArtifacts
public void setPluginArtifacts(Set pluginArtifacts)
setReleaseArtifactRepository
public void setReleaseArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository releaseArtifactRepository)
setRemoteArtifactRepositories
public void setRemoteArtifactRepositories(List remoteArtifactRepositories)
setReportArtifacts
public void setReportArtifacts(Set reportArtifacts)
setReporting
public void setReporting(org.apache.maven.model.Reporting reporting)
setScm
public void setScm(org.apache.maven.model.Scm scm)
setSnapshotArtifactRepository
public void setSnapshotArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository snapshotArtifactRepository)
setUrl
public void setUrl(String url)
setVersion
public void setVersion(String version)
toString
public String toString()
- Overrides:
toString
in class Object
writeModel
public void writeModel(Writer writer)
throws IOException
- Throws:
IOException
writeOriginalModel
public void writeOriginalModel(Writer writer)
throws IOException
- Throws:
IOException
getWrapped
public org.apache.maven.project.MavenProject getWrapped()
Copyright © 2010-2011 Scala Tools. All Rights Reserved.