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, simulateprotected final Map<String,ScmTranslator> getScmTranslators()
public void setLs(String ls)
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
ReleasePhasereleaseDescriptor - 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
ReleasePhasereleaseDescriptor - 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)
ReleasePhaseclean in interface ReleasePhaseclean in class AbstractReleasePhasereactorProjects - 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
ReleaseExecutionExceptionprotected boolean isUpdateScm()
true if the SCM-section should be updated, otherwise falseprotected 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–2015 The Apache Software Foundation. All rights reserved.