org.universAAL.support.directives.procedures
Class UpdateParentPomInteractiveProcedure

Package class diagram package UpdateParentPomInteractiveProcedure
java.lang.Object
  extended by 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:

  1. changing the uAAL.pom parent version
  2. changing the imported root poms' versions in dependencyManagement
  3. changing the version of itest in dependencyManagement
  4. changing the version of uaal-maven-plugin in dependencyManagement
  5. changing the version of uaaldirectives-maven-plugin in dependencyManagement
  6. changing the version of uaal-manifest-maven-plugin in dependencyManagement
  7. the version of uaaldirectives-maven-plugin in reporting
The versions are interactively resolved.

Author:
amedrano

Constructor Summary
UpdateParentPomInteractiveProcedure()
           
 
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
 

Constructor Detail

UpdateParentPomInteractiveProcedure

public UpdateParentPomInteractiveProcedure()
Method Detail

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.