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 org.apache.maven.plugin.testing.stubs.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()
           
 org.apache.maven.model.DistributionManagement getDistributionManagement()
           
 org.apache.maven.model.Model getModel()
           
 List getModules()
           
 org.apache.maven.model.Scm getScm()
           
 void setDistributionManagement(org.apache.maven.model.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
clone, equals, getManagedVersionMap, getReleaseArtifactRepository, getSnapshotArtifactRepository, hashCode, setManagedVersionMap, 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(org.apache.maven.model.DistributionManagement distributionManagement)
Overrides:
setDistributionManagement in class org.apache.maven.plugin.testing.stubs.MavenProjectStub

getModel

public org.apache.maven.model.Model getModel()
Overrides:
getModel in class org.apache.maven.plugin.testing.stubs.MavenProjectStub

getDistributionManagement

public org.apache.maven.model.DistributionManagement getDistributionManagement()
Overrides:
getDistributionManagement in class org.apache.maven.plugin.testing.stubs.MavenProjectStub

getModules

public List getModules()
Overrides:
getModules in class org.apache.maven.plugin.testing.stubs.MavenProjectStub

getBasedir

public File getBasedir()
Overrides:
getBasedir in class org.apache.maven.plugin.testing.stubs.MavenProjectStub

getScm

public org.apache.maven.model.Scm getScm()
Overrides:
getScm in class org.apache.maven.plugin.testing.stubs.MavenProjectStub


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