@Singleton @Named(value="rewrite-pom-versions") public class RewritePomVersionsPhase extends AbstractRewritePomsPhase
Constructor and Description |
---|
RewritePomVersionsPhase(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 resolvedSnapshotsMap)
getResolvedSnapshotVersion.
|
protected boolean |
isUpdateScm()
isUpdateScm.
|
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, setModelETL, setStartTime, simulate, translateUrlPath
getLogger, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
@Inject public RewritePomVersionsPhase(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)
AbstractRewritePomsPhase
transformScm.
transformScm
in class AbstractRewritePomsPhase
project
- a MavenProject
objectmodelTarget
- a Model
objectreleaseDescriptor
- a ReleaseDescriptor
objectprojectId
- a String
objectscmRepository
- a ScmRepository
objectresult
- a ReleaseResult
objectprotected boolean isUpdateScm()
AbstractRewritePomsPhase
isUpdateScm.
isUpdateScm
in class AbstractRewritePomsPhase
true
if the SCM-section should be updated, otherwise false
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 resolvedSnapshotsMap)
AbstractRewritePomsPhase
getResolvedSnapshotVersion.
getResolvedSnapshotVersion
in class AbstractRewritePomsPhase
artifactVersionlessKey
- a String
objectresolvedSnapshotsMap
- a ReleaseDescriptor
objectString
objectCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.