org.apache.maven.plugins.release.stubs
Class FlatMultiModuleMavenProjectStub

java.lang.Object
  extended by org.apache.maven.project.MavenProject
      extended by org.apache.maven.plugin.testing.stubs.MavenProjectStub
          extended by org.apache.maven.plugins.release.stubs.FlatMultiModuleMavenProjectStub
All Implemented Interfaces:
Cloneable

public class FlatMultiModuleMavenProjectStub
extends MavenProjectStub

Stub for a MavenProject with a flat structure.

TODO: shouldn't need to do this, but the "stub" in the harness just throws away values you set. Just overriding the ones I need for this plugin.

Author:
Maria Odea Ching

Field Summary
 
Fields inherited from class org.apache.maven.project.MavenProject
EMPTY_PROJECT_ARTIFACT_ID, EMPTY_PROJECT_GROUP_ID, EMPTY_PROJECT_VERSION
 
Constructor Summary
FlatMultiModuleMavenProjectStub()
           
 
Method Summary
 File getBasedir()
           
 DistributionManagement getDistributionManagement()
           
 Model getModel()
           
 List<String> getModules()
           
 Scm getScm()
           
 void setDistributionManagement(DistributionManagement distributionManagement)
           
 
Methods inherited from class org.apache.maven.plugin.testing.stubs.MavenProjectStub
addAttachedArtifact, addCompileSourceRoot, addContributor, addDeveloper, addLicense, addMailingList, addPlugin, addProjectReference, addResource, addScriptSourceRoot, addTestCompileSourceRoot, addTestResource, attachArtifact, createArtifacts, getActiveProfiles, getArtifact, getArtifactId, getArtifactMap, getArtifacts, getAttachedArtifacts, getBuild, getBuildExtensions, getBuildPlugins, getCiManagement, getCollectedProjects, getCompileArtifacts, getCompileClasspathElements, getCompileDependencies, getCompileSourceRoots, getContributors, getDefaultGoal, getDependencies, getDependencyArtifacts, getDependencyManagement, getDescription, getDevelopers, getDistributionManagementArtifactRepository, getExecutionProject, getExtensionArtifactMap, getExtensionArtifacts, getFile, getFilters, getGoalConfiguration, getGroupId, getId, getInceptionYear, getIssueManagement, getLicenses, getMailingLists, getModelVersion, getModulePathAdjustment, getName, getOrganization, getOriginalModel, getPackaging, getParent, getParentArtifact, getPluginArtifactMap, getPluginArtifactRepositories, getPluginArtifacts, getPluginManagement, getPluginRepositories, getPrerequisites, getProjectReferences, getProperties, getRemoteArtifactRepositories, getReportArtifactMap, getReportArtifacts, getReportConfiguration, getReporting, getReportPlugins, getRepositories, getResources, getRuntimeArtifacts, getRuntimeClasspathElements, getRuntimeDependencies, getScriptSourceRoots, getSystemArtifacts, getSystemClasspathElements, getSystemDependencies, getTestArtifacts, getTestClasspathElements, getTestCompileSourceRoots, getTestDependencies, getTestResources, getUrl, getVersion, hasParent, injectPluginManagementInfo, isExecutionRoot, replaceWithActiveArtifact, setActiveProfiles, setArtifact, setArtifactId, setArtifactMap, setArtifacts, setAttachedArtifacts, setBuild, setBuildOverlay, setCiManagement, setCollectedProjects, setCompileArtifacts, setCompileDependencies, setCompileSourceRoots, setContributors, setDependencies, setDependencyArtifacts, setDescription, setDevelopers, setExecutionProject, setExecutionRoot, setExtensionArtifactMap, setExtensionArtifacts, setFile, setGroupId, setInceptionYear, setIssueManagement, setLicenses, setMailingLists, setModel, setModelVersion, setName, setOrganization, setOriginalModel, setPackaging, setParent, setParentArtifact, setPluginArtifactMap, setPluginArtifactRepositories, setPluginArtifacts, setProjectReferences, setReleaseArtifactRepository, setRemoteArtifactRepositories, setReportArtifactMap, setReportArtifacts, setReporting, setRuntimeArtifacts, setRuntimeClasspathElements, setRuntimeDependencies, setScm, setScriptSourceRoots, setSnapshotArtifactRepository, setSystemArtifacts, setSystemClasspathElements, setSystemDependencies, setTestArtifacts, setTestClasspathElements, setTestCompileSourceRoots, setTestDependencies, setUrl, setVersion, writeModel, writeOriginalModel
 
Methods inherited from class org.apache.maven.project.MavenProject
clearRestorableBuild, clearRestorableRoots, clone, equals, getDynamicBuild, getDynamicCompileSourceRoots, getDynamicScriptSourceRoots, getDynamicTestCompileSourceRoots, getManagedVersionMap, getOriginalInterpolatedBuild, getOriginalInterpolatedCompileSourceRoots, getOriginalInterpolatedScriptSourceRoots, getOriginalInterpolatedTestCompileSourceRoots, getPreservedBasedir, getPreservedProperties, getProjectBuilderConfiguration, getProjectReferenceId, getReleaseArtifactRepository, getSnapshotArtifactRepository, hashCode, isConcrete, preserveBasedir, preserveBuild, preserveCompileSourceRoots, preserveProperties, preserveScriptSourceRoots, preserveTestCompileSourceRoots, resolveActiveArtifacts, setBasedir, setConcrete, setDynamicBuild, setDynamicCompileSourceRoots, setDynamicScriptSourceRoots, setDynamicTestCompileSourceRoots, setLogger, setManagedVersionMap, setOriginalInterpolatedBuild, setOriginalInterpolatedCompileSourceRoots, setOriginalInterpolatedScriptSourceRoots, setOriginalInterpolatedTestCompileSourceRoots, setProjectBuilderConfiguration, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlatMultiModuleMavenProjectStub

public FlatMultiModuleMavenProjectStub()
Method Detail

setDistributionManagement

public void setDistributionManagement(DistributionManagement distributionManagement)
Overrides:
setDistributionManagement in class MavenProjectStub

getModel

public Model getModel()
Overrides:
getModel in class MavenProjectStub

getDistributionManagement

public DistributionManagement getDistributionManagement()
Overrides:
getDistributionManagement in class MavenProjectStub

getModules

public List<String> getModules()
Overrides:
getModules in class MavenProjectStub

getBasedir

public File getBasedir()
Overrides:
getBasedir in class MavenProjectStub

getScm

public Scm getScm()
Overrides:
getScm in class MavenProjectStub


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.