Skip to content

Commit

Permalink
use-dep-version mojo: add a description
Browse files Browse the repository at this point in the history
include in in the goal list in index.apt
also remove deprecated/unused requiresDirectInvocation parameter
  • Loading branch information
stefanseifert committed May 20, 2022
1 parent 5b948bb commit 31907e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Expand Up @@ -34,16 +34,14 @@
import org.codehaus.mojo.versions.api.PomHelper;
import org.codehaus.mojo.versions.rewriting.ModifiedPomXMLEventReader;

import javax.xml.stream.XMLStreamException;
import java.util.Collection;

/**
* Updates a dependency to a specific version.
* This can be useful if you have to manage versions for a very large (100+ module) projects where you can’t always use the most up-to-date version of a particular third party component.
* @author Dan Arcari
* @since 2.3
*/
@Mojo( name = "use-dep-version",
requiresProject = true,
requiresDirectInvocation = true,
threadSafe = true )
public class UseDepVersionMojo extends AbstractVersionsDependencyUpdaterMojo
{
Expand All @@ -63,7 +61,6 @@ public class UseDepVersionMojo extends AbstractVersionsDependencyUpdaterMojo
defaultValue = "false" )
protected boolean forceVersion;

@SuppressWarnings( "unchecked" )
@Override
protected void update( ModifiedPomXMLEventReader pom ) throws MojoExecutionException, MojoFailureException, XMLStreamException, ArtifactMetadataRetrievalException
{
Expand Down
2 changes: 2 additions & 0 deletions src/site/apt/index.apt
Expand Up @@ -95,6 +95,8 @@ Versions Maven Plugin
* {{{./use-latest-versions-mojo.html}versions:use-latest-versions}} searches the pom for all versions which
have been a newer version and replaces them with the latest version.

* {{{./use-dep-version-mojo.html}versions:use-dep-version}} updates a dependency to a specific version.

* {{{./commit-mojo.html}versions:commit}} removes the <<<pom.xml.versionsBackup>>> files. Forms one half of the
built-in "Poor Man's SCM".

Expand Down

0 comments on commit 31907e5

Please sign in to comment.