Class AbstractRewritePomsPhase
java.lang.Object
org.apache.maven.shared.release.phase.AbstractReleasePhase
org.apache.maven.shared.release.phase.AbstractRewritePomsPhase
- All Implemented Interfaces:
ReleasePhase,ResourceGenerator
- Direct Known Subclasses:
RewritePomsForBranchPhase,RewritePomsForDevelopmentPhase,RewritePomsForReleasePhase,RewritePomVersionsPhase
public abstract class AbstractRewritePomsPhase
extends AbstractReleasePhase
implements ResourceGenerator
Base class for rewriting phases.
- Author:
- Brett Porter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRewritePomsPhase(ScmRepositoryConfigurator scmRepositoryConfigurator, Map<String, ModelETLFactory> modelETLFactories, Map<String, ScmTranslator> scmTranslators) -
Method Summary
Modifier and TypeMethodDescriptionexecute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects) protected abstract StringgetNextVersion(ReleaseDescriptor releaseDescriptor, String key) getNextVersion.protected StringgetOriginalResolvedSnapshotVersion(String artifactVersionlessKey, ReleaseDescriptor releaseDescriptor) getOriginalResolvedSnapshotVersion.protected abstract StringgetOriginalVersion(ReleaseDescriptor releaseDescriptor, String projectKey, boolean simulate) getOriginalVersion.protected abstract StringgetPomSuffix.protected abstract StringgetResolvedSnapshotVersion(String artifactVersionlessKey, ReleaseDescriptor releaseDscriptor) getResolvedSnapshotVersion.protected final Map<String, ScmTranslator> Getter for the fieldscmTranslators.protected booleanisUpdateScm.voidsetModelETL(String modelETL) Setter for the fieldmodelETL.voidsetStartTime(long startTime) Setter for the fieldstartTime.simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects) protected abstract voidtransformScm(org.apache.maven.project.MavenProject project, org.apache.maven.model.Model modelTarget, ReleaseDescriptor releaseDescriptor, String projectId, org.apache.maven.scm.repository.ScmRepository scmRepository, ReleaseResult result) transformScm.protected static StringtranslateUrlPath(String trunkPath, String tagPath, String urlPath) Determines the relative path from trunk to tag, and adds this relative path to the url.Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
getLogger, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
-
Constructor Details
-
Method Details
-
getScmTranslators
Getter for the field
scmTranslators.- Returns:
- a
Mapobject
-
setModelETL
Setter for the field
modelETL.- Parameters:
modelETL- aStringobject
-
setStartTime
public void setStartTime(long startTime) Setter for the field
startTime.- Parameters:
startTime- a long
-
getPomSuffix
getPomSuffix.
- Returns:
- a
Stringobject
-
clean
- Specified by:
cleanin interfaceResourceGenerator
-
isUpdateScm
protected boolean isUpdateScm()isUpdateScm.
- Returns:
trueif the SCM-section should be updated, otherwisefalse- Since:
- 2.4
-
translateUrlPath
Determines the relative path from trunk to tag, and adds this relative path to the url.- Parameters:
trunkPath- - The trunk urltagPath- - The tag baseurlPath- - scm.url or scm.connection- Returns:
- The url path for the tag.
-