Package org.codehaus.mojo.versions
Class UpdateChildModulesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
org.codehaus.mojo.versions.UpdateChildModulesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="update-child-modules",
aggregator=true,
threadSafe=true)
public class UpdateChildModulesMojo
extends AbstractVersionsUpdaterMojo
Scans the current projects child modules, updating the versions of any which use the current project to the version
of the current project.
- Since:
- 1.0-alpha-2
- Author:
- Stephen Connolly
-
Field Summary
Fields inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
allowSnapshots, artifactHandlerManager, generateBackupPoms, ignoredVersions, project, reactorProjects, repositorySystem, ruleSet, session, wagonMapFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionUpdateChildModulesMojo(org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, org.eclipse.aether.RepositorySystem repositorySystem, Map<String, org.apache.maven.wagon.Wagon> wagonMap, Map<String, ChangeRecorder> changeRecorders) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Called when this mojo is executed.protected voidUpdates the pom file.Methods inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
findLatestVersion, getChangeRecorder, getHelper, getProject, getVersion, process, saveChangeRecorderResults, setProject, shouldApplyUpdate, shouldApplyUpdate, updatePropertyToNewestVersion, validateInputMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
UpdateChildModulesMojo
@Inject public UpdateChildModulesMojo(org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, org.eclipse.aether.RepositorySystem repositorySystem, Map<String, org.apache.maven.wagon.Wagon> wagonMap, Map<String, ChangeRecorder> changeRecorders)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionCalled when this mojo is executed.- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractVersionsUpdaterMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- when things go wrong.org.apache.maven.plugin.MojoFailureException- when things go wrong.
-
update
protected void update(MutableXMLStreamReader pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, XMLStreamException Updates the pom file.- Specified by:
updatein classAbstractVersionsUpdaterMojo- Parameters:
pom- The pom file to update.- Throws:
org.apache.maven.plugin.MojoExecutionException- when things go wrong.org.apache.maven.plugin.MojoFailureException- when things go wrong.XMLStreamException- when things go wrong.
-