Class MavenProjectStub
java.lang.Object
org.apache.maven.project.MavenProject
org.apache.maven.plugin.testing.stubs.MavenProjectStub
- All Implemented Interfaces:
Cloneable
public class MavenProjectStub
extends org.apache.maven.project.MavenProject
Very simple stub of
MavenProject
object, going to take a lot of work to make it
useful as a stub though.- Author:
- jesse
-
Field Summary
Fields inherited from class org.apache.maven.project.MavenProject
EMPTY_PROJECT_ARTIFACT_ID, EMPTY_PROJECT_GROUP_ID, EMPTY_PROJECT_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorMavenProjectStub
(org.apache.maven.model.Model model) MavenProjectStub
(org.apache.maven.project.MavenProject project) No project model is associated -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachedArtifact
(org.apache.maven.artifact.Artifact artifact) void
addCompileSourceRoot
(String string) void
addContributor
(org.apache.maven.model.Contributor contributor) By default, do nothing.void
addDeveloper
(org.apache.maven.model.Developer developer) By default, do nothing.void
addLicense
(org.apache.maven.model.License license) By default, do nothing.void
addMailingList
(org.apache.maven.model.MailingList mailingList) By default, do nothing.void
addPlugin
(org.apache.maven.model.Plugin plugin) By default, do nothing.void
addProjectReference
(org.apache.maven.project.MavenProject mavenProject) By default, do nothing.void
addResource
(org.apache.maven.model.Resource resource) By default, do nothing.void
addScriptSourceRoot
(String string) void
addTestCompileSourceRoot
(String string) void
addTestResource
(org.apache.maven.model.Resource resource) By default, do nothing.void
attachArtifact
(String string, String string1, File file) By default, do nothing.Set<org.apache.maven.artifact.Artifact>
createArtifacts
(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, String string, org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter) By default, returnCollections.EMPTY_SET
.List<org.apache.maven.model.Profile>
org.apache.maven.artifact.Artifact
By default, returnCollections.EMPTY_MAP
.Set<org.apache.maven.artifact.Artifact>
By default, returnCollections.EMPTY_SET
.List<org.apache.maven.artifact.Artifact>
org.apache.maven.model.Build
getBuild()
List<org.apache.maven.model.Extension>
By default, returnCollections.EMPTY_LIST
.List<org.apache.maven.model.Plugin>
By default, returnCollections.EMPTY_LIST
.org.apache.maven.model.CiManagement
By default, returnnull
.List<org.apache.maven.project.MavenProject>
List<org.apache.maven.artifact.Artifact>
List<org.apache.maven.model.Dependency>
List<org.apache.maven.model.Contributor>
By default, returnCollections.EMPTY_LIST
.List<org.apache.maven.model.Dependency>
By default, returnCollections.EMPTY_LIST
.Set<org.apache.maven.artifact.Artifact>
org.apache.maven.model.DependencyManagement
By default, returnnull
.List<org.apache.maven.model.Developer>
By default, returnCollections.EMPTY_LIST
.org.apache.maven.model.DistributionManagement
By default, returnnull
.org.apache.maven.artifact.repository.ArtifactRepository
By default, returnnull
.org.apache.maven.project.MavenProject
By default, returnnull
.By default, returnCollections.EMPTY_MAP
.Set<org.apache.maven.artifact.Artifact>
By default, returnCollections.EMPTY_SET
.getFile()
By default, returnCollections.EMPTY_LIST
.org.codehaus.plexus.util.xml.Xpp3Dom
getGoalConfiguration
(String string, String string1, String string2, String string3) By default, returnnull
.getId()
By default, return an empty String.org.apache.maven.model.IssueManagement
By default, returnnull
.List<org.apache.maven.model.License>
List<org.apache.maven.model.MailingList>
By default, returnCollections.EMPTY_LIST
.org.apache.maven.model.Model
getModel()
getModulePathAdjustment
(org.apache.maven.project.MavenProject mavenProject) By default, returnCollections.EMPTY_LIST
.getName()
org.apache.maven.model.Organization
By default, returnnull
.org.apache.maven.model.Model
org.apache.maven.project.MavenProject
org.apache.maven.artifact.Artifact
By default, returnnull
.By default, returnCollections.EMPTY_MAP
.List<org.apache.maven.artifact.repository.ArtifactRepository>
Set<org.apache.maven.artifact.Artifact>
By default, returnCollections.EMPTY_SET
.org.apache.maven.model.PluginManagement
By default, returnnull
.List<org.apache.maven.model.Repository>
By default, returnCollections.EMPTY_LIST
.org.apache.maven.model.Prerequisites
By default, returnnull
.By default, returnCollections.EMPTY_MAP
.By default, return a new instance ofProperties
.List<org.apache.maven.artifact.repository.ArtifactRepository>
By default, returnCollections.EMPTY_LIST
.By default, returnCollections.EMPTY_MAP
.Set<org.apache.maven.artifact.Artifact>
By default, returnCollections.EMPTY_SET
.org.codehaus.plexus.util.xml.Xpp3Dom
getReportConfiguration
(String string, String string1, String string2) By default, returnnull
.org.apache.maven.model.Reporting
By default, returnnull
.List<org.apache.maven.model.ReportPlugin>
By default, returnCollections.EMPTY_LIST
.List<org.apache.maven.model.Repository>
By default, returnCollections.EMPTY_LIST
.List<org.apache.maven.model.Resource>
By default, returnCollections.EMPTY_LIST
.List<org.apache.maven.artifact.Artifact>
List<org.apache.maven.model.Dependency>
org.apache.maven.model.Scm
getScm()
By default, returnnull
.List<org.apache.maven.artifact.Artifact>
List<org.apache.maven.model.Dependency>
List<org.apache.maven.artifact.Artifact>
List<org.apache.maven.model.Dependency>
List<org.apache.maven.model.Resource>
By default, returnCollections.EMPTY_LIST
.getUrl()
boolean
void
injectPluginManagementInfo
(org.apache.maven.model.Plugin plugin) By default, do nothing.boolean
protected void
Loads the model for this stub from the specified POM.org.apache.maven.artifact.Artifact
replaceWithActiveArtifact
(org.apache.maven.artifact.Artifact artifact) By default, returnnull
.void
setActiveProfiles
(List<org.apache.maven.model.Profile> list) void
setArtifact
(org.apache.maven.artifact.Artifact artifact) void
setArtifactId
(String string) void
setArtifactMap
(Map<String, org.apache.maven.artifact.Artifact> artifactMap) void
setArtifacts
(Set<org.apache.maven.artifact.Artifact> set) By default, do nothing.void
setAttachedArtifacts
(List<org.apache.maven.artifact.Artifact> attachedArtifacts) void
setBuild
(org.apache.maven.model.Build build) void
setBuildOverlay
(org.apache.maven.model.Build buildOverlay) void
setCiManagement
(org.apache.maven.model.CiManagement ciManagement) By default, do nothing.void
setCollectedProjects
(List<org.apache.maven.project.MavenProject> list) void
setCompileArtifacts
(List<org.apache.maven.artifact.Artifact> compileArtifacts) void
setCompileDependencies
(List<org.apache.maven.model.Dependency> compileDependencies) void
setCompileSourceRoots
(List<String> compileSourceRoots) void
setContributors
(List<org.apache.maven.model.Contributor> list) By default, do nothing.void
setDependencies
(List<org.apache.maven.model.Dependency> list) By default, do nothing.void
setDependencyArtifacts
(Set<org.apache.maven.artifact.Artifact> set) void
setDescription
(String string) void
setDevelopers
(List<org.apache.maven.model.Developer> list) By default, do nothing.void
setDistributionManagement
(org.apache.maven.model.DistributionManagement distributionManagement) By default, do nothing.void
setExecutionProject
(org.apache.maven.project.MavenProject mavenProject) By default, do nothing.void
setExecutionRoot
(boolean b) void
setExtensionArtifactMap
(Map<String, org.apache.maven.artifact.Artifact> extensionArtifactMap) void
setExtensionArtifacts
(Set<org.apache.maven.artifact.Artifact> set) By default, do nothing.void
void
setGroupId
(String string) void
setInceptionYear
(String string) void
setIssueManagement
(org.apache.maven.model.IssueManagement issueManagement) By default, do nothing.void
setLicenses
(List<org.apache.maven.model.License> licenses) void
setMailingLists
(List<org.apache.maven.model.MailingList> list) By default, do nothing.void
setModel
(org.apache.maven.model.Model model) void
setModelVersion
(String string) void
void
setOrganization
(org.apache.maven.model.Organization organization) By default, do nothing.void
setOriginalModel
(org.apache.maven.model.Model model) void
setPackaging
(String string) void
setParent
(org.apache.maven.project.MavenProject mavenProject) void
setParentArtifact
(org.apache.maven.artifact.Artifact artifact) By default, do nothing.void
setPluginArtifactMap
(Map<String, org.apache.maven.artifact.Artifact> pluginArtifactMap) void
setPluginArtifactRepositories
(List<org.apache.maven.artifact.repository.ArtifactRepository> list) void
setPluginArtifacts
(Set<org.apache.maven.artifact.Artifact> set) By default, do nothing.void
setProjectReferences
(Map<String, org.apache.maven.project.MavenProject> projectReferences) void
setReleaseArtifactRepository
(org.apache.maven.artifact.repository.ArtifactRepository artifactRepository) void
setRemoteArtifactRepositories
(List<org.apache.maven.artifact.repository.ArtifactRepository> list) By default, do nothing.void
setReportArtifactMap
(Map<String, org.apache.maven.artifact.Artifact> reportArtifactMap) void
setReportArtifacts
(Set<org.apache.maven.artifact.Artifact> set) By default, do nothing.void
setReporting
(org.apache.maven.model.Reporting reporting) By default, do nothing.void
setRuntimeArtifacts
(List<org.apache.maven.artifact.Artifact> runtimeArtifacts) void
setRuntimeClasspathElements
(List<String> runtimeClasspathElements) void
setRuntimeDependencies
(List<org.apache.maven.model.Dependency> runtimeDependencies) void
setScm
(org.apache.maven.model.Scm scm) By default, do nothing.void
setScriptSourceRoots
(List<String> scriptSourceRoots) void
setSnapshotArtifactRepository
(org.apache.maven.artifact.repository.ArtifactRepository artifactRepository) void
setSystemArtifacts
(List<org.apache.maven.artifact.Artifact> systemArtifacts) void
setSystemClasspathElements
(List<String> systemClasspathElements) void
setSystemDependencies
(List<org.apache.maven.model.Dependency> systemDependencies) void
setTestArtifacts
(List<org.apache.maven.artifact.Artifact> testArtifacts) void
setTestClasspathElements
(List<String> testClasspathElements) void
setTestCompileSourceRoots
(List<String> testCompileSourceRoots) void
setTestDependencies
(List<org.apache.maven.model.Dependency> testDependencies) void
void
setVersion
(String string) void
writeModel
(Writer writer) By default, do nothing.void
writeOriginalModel
(Writer writer) By default, do nothing.Methods inherited from class org.apache.maven.project.MavenProject
addLifecyclePhase, clone, equals, getClassRealm, getContextValue, getExtensionDependencyFilter, getInjectedProfileIds, getManagedVersionMap, getParentFile, getPlugin, getProjectBuildingRequest, getReleaseArtifactRepository, getRemotePluginRepositories, getRemoteProjectRepositories, getRootDirectory, getSnapshotArtifactRepository, hashCode, hasLifecyclePhase, setArtifactFilter, setClassRealm, setContextValue, setExtensionDependencyFilter, setInjectedProfileIds, setManagedVersionMap, setParentFile, setPomFile, setProjectBuildingRequest, setResolvedArtifacts, setRootDirectory, toString
-
Constructor Details
-
MavenProjectStub
public MavenProjectStub()Default constructor -
MavenProjectStub
public MavenProjectStub(org.apache.maven.model.Model model) - Parameters:
model
- the given model
-
MavenProjectStub
public MavenProjectStub(org.apache.maven.project.MavenProject project) No project model is associated- Parameters:
project
- the given project
-
-
Method Details
-
readModel
Loads the model for this stub from the specified POM. For convenience, any checked exception caused by I/O or parser errors will be wrapped into an unchecked exception.- Parameters:
pomFile
- The path to the POM file to load, must not benull
. If this path is relative, it is resolved against the return value ofgetBasedir()
.
-
getModulePathAdjustment
public String getModulePathAdjustment(org.apache.maven.project.MavenProject mavenProject) throws IOException - Overrides:
getModulePathAdjustment
in classorg.apache.maven.project.MavenProject
- Parameters:
mavenProject
-- Returns:
- an empty String
- Throws:
IOException
- if any
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()- Overrides:
getArtifact
in classorg.apache.maven.project.MavenProject
-
setArtifact
public void setArtifact(org.apache.maven.artifact.Artifact artifact) - Overrides:
setArtifact
in classorg.apache.maven.project.MavenProject
-
getModel
public org.apache.maven.model.Model getModel()- Overrides:
getModel
in classorg.apache.maven.project.MavenProject
-
getParent
public org.apache.maven.project.MavenProject getParent()- Overrides:
getParent
in classorg.apache.maven.project.MavenProject
-
setParent
public void setParent(org.apache.maven.project.MavenProject mavenProject) - Overrides:
setParent
in classorg.apache.maven.project.MavenProject
-
setRemoteArtifactRepositories
public void setRemoteArtifactRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> list) By default, do nothing.- Overrides:
setRemoteArtifactRepositories
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setRemoteArtifactRepositories(java.util.List)
-
getRemoteArtifactRepositories
public List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteArtifactRepositories()By default, returnCollections.EMPTY_LIST
.- Overrides:
getRemoteArtifactRepositories
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getRemoteArtifactRepositories()
-
hasParent
public boolean hasParent()- Overrides:
hasParent
in classorg.apache.maven.project.MavenProject
-
getFile
- Overrides:
getFile
in classorg.apache.maven.project.MavenProject
-
setFile
- Overrides:
setFile
in classorg.apache.maven.project.MavenProject
-
getBasedir
- Overrides:
getBasedir
in classorg.apache.maven.project.MavenProject
-
setDependencies
By default, do nothing.- Overrides:
setDependencies
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setDependencies(java.util.List)
-
getDependencies
By default, returnCollections.EMPTY_LIST
.- Overrides:
getDependencies
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getDependencies()
-
getDependencyManagement
public org.apache.maven.model.DependencyManagement getDependencyManagement()By default, returnnull
.- Overrides:
getDependencyManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getDependencyManagement()
-
addCompileSourceRoot
- Overrides:
addCompileSourceRoot
in classorg.apache.maven.project.MavenProject
-
addScriptSourceRoot
- Overrides:
addScriptSourceRoot
in classorg.apache.maven.project.MavenProject
-
addTestCompileSourceRoot
- Overrides:
addTestCompileSourceRoot
in classorg.apache.maven.project.MavenProject
-
getCompileSourceRoots
- Overrides:
getCompileSourceRoots
in classorg.apache.maven.project.MavenProject
-
getScriptSourceRoots
- Overrides:
getScriptSourceRoots
in classorg.apache.maven.project.MavenProject
-
getTestCompileSourceRoots
- Overrides:
getTestCompileSourceRoots
in classorg.apache.maven.project.MavenProject
-
getCompileClasspathElements
public List<String> getCompileClasspathElements() throws org.apache.maven.artifact.DependencyResolutionRequiredException- Overrides:
getCompileClasspathElements
in classorg.apache.maven.project.MavenProject
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
-
setCompileArtifacts
- Parameters:
compileArtifacts
-
-
getCompileArtifacts
- Overrides:
getCompileArtifacts
in classorg.apache.maven.project.MavenProject
-
getCompileDependencies
- Overrides:
getCompileDependencies
in classorg.apache.maven.project.MavenProject
-
getTestClasspathElements
public List<String> getTestClasspathElements() throws org.apache.maven.artifact.DependencyResolutionRequiredException- Overrides:
getTestClasspathElements
in classorg.apache.maven.project.MavenProject
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
-
getTestArtifacts
- Overrides:
getTestArtifacts
in classorg.apache.maven.project.MavenProject
-
getTestDependencies
- Overrides:
getTestDependencies
in classorg.apache.maven.project.MavenProject
-
getRuntimeClasspathElements
public List<String> getRuntimeClasspathElements() throws org.apache.maven.artifact.DependencyResolutionRequiredException- Overrides:
getRuntimeClasspathElements
in classorg.apache.maven.project.MavenProject
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
-
getRuntimeArtifacts
- Overrides:
getRuntimeArtifacts
in classorg.apache.maven.project.MavenProject
-
getRuntimeDependencies
- Overrides:
getRuntimeDependencies
in classorg.apache.maven.project.MavenProject
-
getSystemClasspathElements
public List<String> getSystemClasspathElements() throws org.apache.maven.artifact.DependencyResolutionRequiredException- Overrides:
getSystemClasspathElements
in classorg.apache.maven.project.MavenProject
- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
-
getSystemArtifacts
- Overrides:
getSystemArtifacts
in classorg.apache.maven.project.MavenProject
-
setRuntimeClasspathElements
- Parameters:
runtimeClasspathElements
-
-
setAttachedArtifacts
- Overrides:
setAttachedArtifacts
in classorg.apache.maven.project.MavenProject
- Parameters:
attachedArtifacts
-
-
setCompileSourceRoots
- Overrides:
setCompileSourceRoots
in classorg.apache.maven.project.MavenProject
- Parameters:
compileSourceRoots
-
-
setTestCompileSourceRoots
- Overrides:
setTestCompileSourceRoots
in classorg.apache.maven.project.MavenProject
- Parameters:
testCompileSourceRoots
-
-
setScriptSourceRoots
- Overrides:
setScriptSourceRoots
in classorg.apache.maven.project.MavenProject
- Parameters:
scriptSourceRoots
-
-
setArtifactMap
- Parameters:
artifactMap
-
-
setPluginArtifactMap
- Parameters:
pluginArtifactMap
-
-
setReportArtifactMap
- Parameters:
reportArtifactMap
-
-
setExtensionArtifactMap
public void setExtensionArtifactMap(Map<String, org.apache.maven.artifact.Artifact> extensionArtifactMap) - Parameters:
extensionArtifactMap
-
-
setProjectReferences
public void setProjectReferences(Map<String, org.apache.maven.project.MavenProject> projectReferences) - Parameters:
projectReferences
-
-
setBuildOverlay
public void setBuildOverlay(org.apache.maven.model.Build buildOverlay) - Parameters:
buildOverlay
-
-
setCompileDependencies
- Parameters:
compileDependencies
-
-
setSystemDependencies
- Parameters:
systemDependencies
-
-
setTestClasspathElements
- Parameters:
testClasspathElements
-
-
setTestDependencies
- Parameters:
testDependencies
-
-
setSystemClasspathElements
- Parameters:
systemClasspathElements
-
-
setSystemArtifacts
- Parameters:
systemArtifacts
-
-
setTestArtifacts
- Parameters:
testArtifacts
-
-
setRuntimeArtifacts
- Parameters:
runtimeArtifacts
-
-
setRuntimeDependencies
- Parameters:
runtimeDependencies
-
-
setModel
public void setModel(org.apache.maven.model.Model model) - Overrides:
setModel
in classorg.apache.maven.project.MavenProject
- Parameters:
model
-
-
getSystemDependencies
- Overrides:
getSystemDependencies
in classorg.apache.maven.project.MavenProject
-
setModelVersion
- Overrides:
setModelVersion
in classorg.apache.maven.project.MavenProject
-
getModelVersion
- Overrides:
getModelVersion
in classorg.apache.maven.project.MavenProject
-
getId
By default, return an empty String.- Overrides:
getId
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getId()
-
setGroupId
- Overrides:
setGroupId
in classorg.apache.maven.project.MavenProject
-
getGroupId
- Overrides:
getGroupId
in classorg.apache.maven.project.MavenProject
-
setArtifactId
- Overrides:
setArtifactId
in classorg.apache.maven.project.MavenProject
-
getArtifactId
- Overrides:
getArtifactId
in classorg.apache.maven.project.MavenProject
-
setName
- Overrides:
setName
in classorg.apache.maven.project.MavenProject
-
getName
- Overrides:
getName
in classorg.apache.maven.project.MavenProject
-
setVersion
- Overrides:
setVersion
in classorg.apache.maven.project.MavenProject
-
getVersion
- Overrides:
getVersion
in classorg.apache.maven.project.MavenProject
-
getPackaging
- Overrides:
getPackaging
in classorg.apache.maven.project.MavenProject
-
setPackaging
- Overrides:
setPackaging
in classorg.apache.maven.project.MavenProject
-
setInceptionYear
- Overrides:
setInceptionYear
in classorg.apache.maven.project.MavenProject
-
getInceptionYear
- Overrides:
getInceptionYear
in classorg.apache.maven.project.MavenProject
-
setUrl
- Overrides:
setUrl
in classorg.apache.maven.project.MavenProject
-
getUrl
- Overrides:
getUrl
in classorg.apache.maven.project.MavenProject
-
getPrerequisites
public org.apache.maven.model.Prerequisites getPrerequisites()By default, returnnull
.- Overrides:
getPrerequisites
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getPrerequisites()
-
setIssueManagement
public void setIssueManagement(org.apache.maven.model.IssueManagement issueManagement) By default, do nothing.- Overrides:
setIssueManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setIssueManagement(org.apache.maven.model.IssueManagement)
-
getCiManagement
public org.apache.maven.model.CiManagement getCiManagement()By default, returnnull
.- Overrides:
getCiManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getCiManagement()
-
setCiManagement
public void setCiManagement(org.apache.maven.model.CiManagement ciManagement) By default, do nothing.- Overrides:
setCiManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setCiManagement(org.apache.maven.model.CiManagement)
-
getIssueManagement
public org.apache.maven.model.IssueManagement getIssueManagement()By default, returnnull
.- Overrides:
getIssueManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getIssueManagement()
-
setDistributionManagement
public void setDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement) By default, do nothing.- Overrides:
setDistributionManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setDistributionManagement(org.apache.maven.model.DistributionManagement)
-
getDistributionManagement
public org.apache.maven.model.DistributionManagement getDistributionManagement()By default, returnnull
.- Overrides:
getDistributionManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getDistributionManagement()
-
setDescription
- Overrides:
setDescription
in classorg.apache.maven.project.MavenProject
-
getDescription
- Overrides:
getDescription
in classorg.apache.maven.project.MavenProject
-
setOrganization
public void setOrganization(org.apache.maven.model.Organization organization) By default, do nothing.- Overrides:
setOrganization
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setOrganization(org.apache.maven.model.Organization)
-
getOrganization
public org.apache.maven.model.Organization getOrganization()By default, returnnull
.- Overrides:
getOrganization
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getOrganization()
-
setScm
public void setScm(org.apache.maven.model.Scm scm) By default, do nothing.- Overrides:
setScm
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setScm(org.apache.maven.model.Scm)
-
getScm
public org.apache.maven.model.Scm getScm()By default, returnnull
.- Overrides:
getScm
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getScm()
-
setMailingLists
By default, do nothing.- Overrides:
setMailingLists
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setMailingLists(java.util.List)
-
getMailingLists
By default, returnCollections.EMPTY_LIST
.- Overrides:
getMailingLists
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getMailingLists()
-
addMailingList
public void addMailingList(org.apache.maven.model.MailingList mailingList) By default, do nothing.- Overrides:
addMailingList
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.addMailingList(org.apache.maven.model.MailingList)
-
setDevelopers
By default, do nothing.- Overrides:
setDevelopers
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setDevelopers(java.util.List)
-
getDevelopers
By default, returnCollections.EMPTY_LIST
.- Overrides:
getDevelopers
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getDevelopers()
-
addDeveloper
public void addDeveloper(org.apache.maven.model.Developer developer) By default, do nothing.- Overrides:
addDeveloper
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.addDeveloper(org.apache.maven.model.Developer)
-
setContributors
By default, do nothing.- Overrides:
setContributors
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setContributors(java.util.List)
-
getContributors
By default, returnCollections.EMPTY_LIST
.- Overrides:
getContributors
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getContributors()
-
addContributor
public void addContributor(org.apache.maven.model.Contributor contributor) By default, do nothing.- Overrides:
addContributor
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.addContributor(org.apache.maven.model.Contributor)
-
setBuild
public void setBuild(org.apache.maven.model.Build build) - Overrides:
setBuild
in classorg.apache.maven.project.MavenProject
-
getBuild
public org.apache.maven.model.Build getBuild()- Overrides:
getBuild
in classorg.apache.maven.project.MavenProject
-
getResources
By default, returnCollections.EMPTY_LIST
.- Overrides:
getResources
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getResources()
-
getTestResources
By default, returnCollections.EMPTY_LIST
.- Overrides:
getTestResources
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getTestResources()
-
addResource
public void addResource(org.apache.maven.model.Resource resource) By default, do nothing.- Overrides:
addResource
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.addResource(org.apache.maven.model.Resource)
-
addTestResource
public void addTestResource(org.apache.maven.model.Resource resource) By default, do nothing.- Overrides:
addTestResource
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.addTestResource(org.apache.maven.model.Resource)
-
setReporting
public void setReporting(org.apache.maven.model.Reporting reporting) By default, do nothing.- Overrides:
setReporting
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setReporting(org.apache.maven.model.Reporting)
-
getReporting
public org.apache.maven.model.Reporting getReporting()By default, returnnull
.- Overrides:
getReporting
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getReporting()
-
setLicenses
- Overrides:
setLicenses
in classorg.apache.maven.project.MavenProject
-
getLicenses
- Overrides:
getLicenses
in classorg.apache.maven.project.MavenProject
-
addLicense
public void addLicense(org.apache.maven.model.License license) By default, do nothing.- Overrides:
addLicense
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.addLicense(org.apache.maven.model.License)
-
setArtifacts
By default, do nothing.- Overrides:
setArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setArtifacts(java.util.Set)
-
getArtifacts
By default, returnCollections.EMPTY_SET
.- Overrides:
getArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getArtifacts()
-
getArtifactMap
By default, returnCollections.EMPTY_MAP
.- Overrides:
getArtifactMap
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getArtifactMap()
-
setPluginArtifacts
By default, do nothing.- Overrides:
setPluginArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setPluginArtifacts(java.util.Set)
-
getPluginArtifacts
By default, returnCollections.EMPTY_SET
.- Overrides:
getPluginArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getPluginArtifacts()
-
getPluginArtifactMap
By default, returnCollections.EMPTY_MAP
.- Overrides:
getPluginArtifactMap
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getPluginArtifactMap()
-
setReportArtifacts
By default, do nothing.- Overrides:
setReportArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setReportArtifacts(java.util.Set)
-
getReportArtifacts
By default, returnCollections.EMPTY_SET
.- Overrides:
getReportArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getReportArtifacts()
-
getReportArtifactMap
By default, returnCollections.EMPTY_MAP
.- Overrides:
getReportArtifactMap
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getReportArtifactMap()
-
setExtensionArtifacts
By default, do nothing.- Overrides:
setExtensionArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setExtensionArtifacts(java.util.Set)
-
getExtensionArtifacts
By default, returnCollections.EMPTY_SET
.- Overrides:
getExtensionArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getExtensionArtifacts()
-
getExtensionArtifactMap
By default, returnCollections.EMPTY_MAP
.- Overrides:
getExtensionArtifactMap
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getExtensionArtifactMap()
-
setParentArtifact
public void setParentArtifact(org.apache.maven.artifact.Artifact artifact) By default, do nothing.- Overrides:
setParentArtifact
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setParentArtifact(org.apache.maven.artifact.Artifact)
-
getParentArtifact
public org.apache.maven.artifact.Artifact getParentArtifact()By default, returnnull
.- Overrides:
getParentArtifact
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getParentArtifact()
-
getRepositories
By default, returnCollections.EMPTY_LIST
.- Overrides:
getRepositories
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getRepositories()
-
getReportPlugins
By default, returnCollections.EMPTY_LIST
.- Overrides:
getReportPlugins
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getReportPlugins()
-
getBuildPlugins
By default, returnCollections.EMPTY_LIST
.- Overrides:
getBuildPlugins
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getBuildPlugins()
-
getModules
By default, returnCollections.EMPTY_LIST
.- Overrides:
getModules
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getModules()
-
getPluginManagement
public org.apache.maven.model.PluginManagement getPluginManagement()By default, returnnull
.- Overrides:
getPluginManagement
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getPluginManagement()
-
addPlugin
public void addPlugin(org.apache.maven.model.Plugin plugin) By default, do nothing. -
injectPluginManagementInfo
public void injectPluginManagementInfo(org.apache.maven.model.Plugin plugin) By default, do nothing.- Parameters:
plugin
-
-
getCollectedProjects
- Overrides:
getCollectedProjects
in classorg.apache.maven.project.MavenProject
-
setCollectedProjects
- Overrides:
setCollectedProjects
in classorg.apache.maven.project.MavenProject
-
setPluginArtifactRepositories
public void setPluginArtifactRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> list) - Overrides:
setPluginArtifactRepositories
in classorg.apache.maven.project.MavenProject
-
getPluginArtifactRepositories
public List<org.apache.maven.artifact.repository.ArtifactRepository> getPluginArtifactRepositories()- Overrides:
getPluginArtifactRepositories
in classorg.apache.maven.project.MavenProject
-
getDistributionManagementArtifactRepository
public org.apache.maven.artifact.repository.ArtifactRepository getDistributionManagementArtifactRepository()By default, returnnull
.- Overrides:
getDistributionManagementArtifactRepository
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getDistributionManagementArtifactRepository()
-
getPluginRepositories
By default, returnCollections.EMPTY_LIST
.- Overrides:
getPluginRepositories
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getPluginRepositories()
-
setActiveProfiles
- Overrides:
setActiveProfiles
in classorg.apache.maven.project.MavenProject
-
getActiveProfiles
- Overrides:
getActiveProfiles
in classorg.apache.maven.project.MavenProject
-
addAttachedArtifact
public void addAttachedArtifact(org.apache.maven.artifact.Artifact artifact) - Overrides:
addAttachedArtifact
in classorg.apache.maven.project.MavenProject
-
getAttachedArtifacts
- Overrides:
getAttachedArtifacts
in classorg.apache.maven.project.MavenProject
-
getGoalConfiguration
public org.codehaus.plexus.util.xml.Xpp3Dom getGoalConfiguration(String string, String string1, String string2, String string3) By default, returnnull
.- Overrides:
getGoalConfiguration
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getGoalConfiguration(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
getReportConfiguration
public org.codehaus.plexus.util.xml.Xpp3Dom getReportConfiguration(String string, String string1, String string2) By default, returnnull
.- Overrides:
getReportConfiguration
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getReportConfiguration(java.lang.String, java.lang.String, java.lang.String)
-
getExecutionProject
public org.apache.maven.project.MavenProject getExecutionProject()By default, returnnull
.- Overrides:
getExecutionProject
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getExecutionProject()
-
setExecutionProject
public void setExecutionProject(org.apache.maven.project.MavenProject mavenProject) By default, do nothing.- Overrides:
setExecutionProject
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.setExecutionProject(org.apache.maven.project.MavenProject)
-
writeModel
By default, do nothing.- Overrides:
writeModel
in classorg.apache.maven.project.MavenProject
- Throws:
IOException
- See Also:
-
MavenProject.writeModel(java.io.Writer)
-
writeOriginalModel
By default, do nothing.- Overrides:
writeOriginalModel
in classorg.apache.maven.project.MavenProject
- Throws:
IOException
- See Also:
-
MavenProject.writeOriginalModel(java.io.Writer)
-
getDependencyArtifacts
- Overrides:
getDependencyArtifacts
in classorg.apache.maven.project.MavenProject
-
setDependencyArtifacts
- Overrides:
setDependencyArtifacts
in classorg.apache.maven.project.MavenProject
-
setReleaseArtifactRepository
public void setReleaseArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository artifactRepository) - Overrides:
setReleaseArtifactRepository
in classorg.apache.maven.project.MavenProject
-
setSnapshotArtifactRepository
public void setSnapshotArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository artifactRepository) - Overrides:
setSnapshotArtifactRepository
in classorg.apache.maven.project.MavenProject
-
setOriginalModel
public void setOriginalModel(org.apache.maven.model.Model model) - Overrides:
setOriginalModel
in classorg.apache.maven.project.MavenProject
-
getOriginalModel
public org.apache.maven.model.Model getOriginalModel()- Overrides:
getOriginalModel
in classorg.apache.maven.project.MavenProject
-
getBuildExtensions
By default, returnCollections.EMPTY_LIST
.- Overrides:
getBuildExtensions
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getBuildExtensions()
-
createArtifacts
public Set<org.apache.maven.artifact.Artifact> createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, String string, org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter) By default, returnCollections.EMPTY_SET
.- Overrides:
createArtifacts
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory, java.lang.String, org.apache.maven.artifact.resolver.filter.ArtifactFilter)
-
addProjectReference
public void addProjectReference(org.apache.maven.project.MavenProject mavenProject) By default, do nothing.- Overrides:
addProjectReference
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.addProjectReference(org.apache.maven.project.MavenProject)
-
attachArtifact
By default, do nothing.- Overrides:
attachArtifact
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.attachArtifact(java.lang.String, java.lang.String, java.io.File)
-
getProperties
By default, return a new instance ofProperties
.- Overrides:
getProperties
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getProperties()
-
getFilters
By default, returnCollections.EMPTY_LIST
.- Overrides:
getFilters
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getFilters()
-
getProjectReferences
By default, returnCollections.EMPTY_MAP
.- Overrides:
getProjectReferences
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.getProjectReferences()
-
isExecutionRoot
public boolean isExecutionRoot()- Overrides:
isExecutionRoot
in classorg.apache.maven.project.MavenProject
-
setExecutionRoot
public void setExecutionRoot(boolean b) - Overrides:
setExecutionRoot
in classorg.apache.maven.project.MavenProject
-
getDefaultGoal
- Overrides:
getDefaultGoal
in classorg.apache.maven.project.MavenProject
-
replaceWithActiveArtifact
public org.apache.maven.artifact.Artifact replaceWithActiveArtifact(org.apache.maven.artifact.Artifact artifact) By default, returnnull
.- Overrides:
replaceWithActiveArtifact
in classorg.apache.maven.project.MavenProject
- See Also:
-
MavenProject.replaceWithActiveArtifact(org.apache.maven.artifact.Artifact)
-