Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use-dep-version mojo: add a description #591

Merged
merged 1 commit into from May 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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