public abstract class AbstractRewritePomsPhase extends AbstractReleasePhase
ROLE
Constructor and Description |
---|
AbstractRewritePomsPhase() |
Modifier and Type | Method and Description |
---|---|
protected Scm |
buildScm(MavenProject project) |
ReleaseResult |
clean(List<MavenProject> reactorProjects)
Clean up after a phase if it leaves any additional files in the checkout.
|
ReleaseResult |
execute(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects)
Execute the phase.
|
protected abstract Map<String,String> |
getNextVersionMap(ReleaseDescriptor releaseDescriptor) |
protected String |
getOriginalResolvedSnapshotVersion(String artifactVersionlessKey,
Map<String,Map<String,String>> resolvedSnapshots) |
protected abstract Map<String,String> |
getOriginalVersionMap(ReleaseDescriptor releaseDescriptor,
List<MavenProject> reactorProjects,
boolean simulate) |
protected abstract String |
getResolvedSnapshotVersion(String artifactVersionlessKey,
Map<String,Map<String,String>> resolvedSnapshots) |
protected Map<String,ScmTranslator> |
getScmTranslators() |
protected boolean |
isUpdateScm() |
protected org.jdom.Element |
rewriteElement(String name,
String value,
org.jdom.Element root,
org.jdom.Namespace namespace) |
void |
setLs(String ls) |
ReleaseResult |
simulate(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects)
Simulate the phase, but don't make any changes to the project.
|
protected abstract void |
transformScm(MavenProject project,
org.jdom.Element rootElement,
org.jdom.Namespace namespace,
ReleaseDescriptor releaseDescriptor,
String projectId,
ScmRepository scmRepository,
ReleaseResult result,
String commonBasedir) |
protected static String |
translateUrlPath(String trunkPath,
String tagPath,
String urlPath)
Determines the relative path from trunk to tag, and adds this relative path
to the url.
|
execute, getReleaseResultSuccess, getResourceBundle, logDebug, logDebug, logError, logInfo, logWarn, simulate
protected final Map<String,ScmTranslator> getScmTranslators()
public void setLs(String ls)
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
ReleasePhase
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projectsReleaseExecutionException
- an exception during the execution of the phaseReleaseFailureException
- a failure during the execution of the phasepublic ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
ReleasePhase
releaseDescriptor
- the configuration to usereleaseEnvironment
- the environmental configuration, such as Maven settings, Maven home, etc.reactorProjects
- the reactor projectsReleaseExecutionException
- an exception during the execution of the phaseReleaseFailureException
- a failure during the execution of the phasepublic ReleaseResult clean(List<MavenProject> reactorProjects)
ReleasePhase
clean
in interface ReleasePhase
clean
in class AbstractReleasePhase
reactorProjects
- the reactor projectsprotected abstract String getResolvedSnapshotVersion(String artifactVersionlessKey, Map<String,Map<String,String>> resolvedSnapshots)
protected abstract Map<String,String> getOriginalVersionMap(ReleaseDescriptor releaseDescriptor, List<MavenProject> reactorProjects, boolean simulate)
protected abstract Map<String,String> getNextVersionMap(ReleaseDescriptor releaseDescriptor)
protected abstract void transformScm(MavenProject project, org.jdom.Element rootElement, org.jdom.Namespace namespace, ReleaseDescriptor releaseDescriptor, String projectId, ScmRepository scmRepository, ReleaseResult result, String commonBasedir) throws ReleaseExecutionException
ReleaseExecutionException
protected boolean isUpdateScm()
true
if the SCM-section should be updated, otherwise false
protected String getOriginalResolvedSnapshotVersion(String artifactVersionlessKey, Map<String,Map<String,String>> resolvedSnapshots)
protected org.jdom.Element rewriteElement(String name, String value, org.jdom.Element root, org.jdom.Namespace namespace)
protected Scm buildScm(MavenProject project)
protected static String translateUrlPath(String trunkPath, String tagPath, String urlPath)
trunkPath
- - The trunk urltagPath
- - The tag baseurlPath
- - scm.url or scm.connectionCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.