org.universAAL.support.directives.procedures
Class UpdateParentPomInteractiveProcedure
java.lang.Object
org.universAAL.support.directives.procedures.UpdateParentPomInteractiveProcedure
- All Implemented Interfaces:
- APIProcedure, PomFixer
- Direct Known Subclasses:
- UpdateRootVersionsProcedure
public class UpdateParentPomInteractiveProcedure
- extends Object
- implements APIProcedure, PomFixer
This procedure is intended to ease Release process by:
- changing the uAAL.pom parent version
- changing the imported root poms' versions in dependencyManagement
- changing the version of itest in dependencyManagement
- changing the version of uaal-maven-plugin in dependencyManagement
- changing the version of uaaldirectives-maven-plugin in
dependencyManagement
- changing the version of uaal-manifest-maven-plugin in
dependencyManagement
- the version of uaaldirectives-maven-plugin in reporting
The versions are interactively resolved.
- Author:
- amedrano
Method Summary |
protected String |
ask4NewVersion(String groupID,
String artifactID,
String currentVersion)
Ask the user for the new version for the given artifact. |
void |
execute(org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.plugin.logging.Log log)
|
void |
fix(org.apache.maven.model.Model model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateParentPomInteractiveProcedure
public UpdateParentPomInteractiveProcedure()
execute
public void execute(org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.plugin.logging.Log log)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
-
- Specified by:
execute
in interface APIProcedure
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
fix
public void fix(org.apache.maven.model.Model model)
- Specified by:
fix
in interface PomFixer
ask4NewVersion
protected String ask4NewVersion(String groupID,
String artifactID,
String currentVersion)
- Ask the user for the new version for the given artifact.
- Parameters:
groupID
- artifactID
- currentVersion
-
- Returns:
Copyright © 2014 universAAL Consortium. All Rights Reserved.