@Singleton @Named(value="rewrite-poms-for-release") public class RewritePomsForReleasePhase extends AbstractRewritePomsPhase
Constructor and Description |
---|
RewritePomsForReleasePhase(ScmRepositoryConfigurator scmRepositoryConfigurator,
Map<String,ModelETLFactory> modelETLFactories,
Map<String,ScmTranslator> scmTranslators) |
Modifier and Type | Method and Description |
---|---|
protected String |
getNextVersion(ReleaseDescriptor releaseDescriptor,
String key)
getNextVersion.
|
protected String |
getOriginalVersion(ReleaseDescriptor releaseDescriptor,
String projectKey,
boolean simulate)
getOriginalVersion.
|
protected String |
getPomSuffix()
getPomSuffix.
|
protected String |
getResolvedSnapshotVersion(String artifactVersionlessKey,
ReleaseDescriptor releaseDescriptor)
getResolvedSnapshotVersion.
|
protected void |
transformScm(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.
|
clean, execute, extractPropertyFromExpression, getOriginalResolvedSnapshotVersion, getScmTranslators, isCiFriendlyVersion, isUpdateScm, setModelETL, setStartTime, simulate, translateUrlPath
getLogger, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
@Inject public RewritePomsForReleasePhase(ScmRepositoryConfigurator scmRepositoryConfigurator, Map<String,ModelETLFactory> modelETLFactories, Map<String,ScmTranslator> scmTranslators)
protected final String getPomSuffix()
AbstractRewritePomsPhase
getPomSuffix.
getPomSuffix
in class AbstractRewritePomsPhase
String
objectprotected void transformScm(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) throws ReleaseExecutionException
AbstractRewritePomsPhase
transformScm.
transformScm
in class AbstractRewritePomsPhase
project
- a MavenProject
objectmodelTarget
- a Model
objectreleaseDescriptor
- a ReleaseDescriptor
objectprojectId
- a String
objectscmRepository
- a ScmRepository
objectresult
- a ReleaseResult
objectReleaseExecutionException
- if any.protected String getOriginalVersion(ReleaseDescriptor releaseDescriptor, String projectKey, boolean simulate)
AbstractRewritePomsPhase
getOriginalVersion.
getOriginalVersion
in class AbstractRewritePomsPhase
releaseDescriptor
- a ReleaseDescriptor
objectprojectKey
- a String
objectsimulate
- a booleanString
objectprotected String getNextVersion(ReleaseDescriptor releaseDescriptor, String key)
AbstractRewritePomsPhase
getNextVersion.
getNextVersion
in class AbstractRewritePomsPhase
releaseDescriptor
- a ReleaseDescriptor
objectkey
- a String
objectString
objectprotected String getResolvedSnapshotVersion(String artifactVersionlessKey, ReleaseDescriptor releaseDescriptor)
AbstractRewritePomsPhase
getResolvedSnapshotVersion.
getResolvedSnapshotVersion
in class AbstractRewritePomsPhase
artifactVersionlessKey
- a String
objectreleaseDescriptor
- a ReleaseDescriptor
objectString
objectCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.