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

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.MavenProjectStub
All Implemented Interfaces:
Cloneable

public class MavenProjectStub
extends MavenProjectStub

Stub for MavenProject.

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:
Brett Porter

Field Summary
 
Fields inherited from class org.apache.maven.project.MavenProject
EMPTY_PROJECT_ARTIFACT_ID, EMPTY_PROJECT_GROUP_ID, EMPTY_PROJECT_VERSION
 
Constructor Summary
MavenProjectStub()
           
 
Method Summary
 DistributionManagement getDistributionManagement()
           
 Model getModel()
           
 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, getBasedir, 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, getModules, 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, getScm, 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

MavenProjectStub

public MavenProjectStub()
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


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