Class DisplayDependencyUpdatesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="display-dependency-updates", threadSafe=true) public class DisplayDependencyUpdatesMojo extends AbstractVersionsDisplayMojo
Displays all dependencies that have newer versions available. It will also display dependencies which are used by a plugin or defined in the plugin within a pluginManagement.
Since:
1.0-alpha-1
Author:
Stephen Connolly
  • Constructor Details

    • DisplayDependencyUpdatesMojo

      @Inject public DisplayDependencyUpdatesMojo(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

    • dependenciesMatch

      protected static boolean dependenciesMatch(org.apache.maven.model.Dependency dependency, org.apache.maven.model.Dependency managedDependency)
    • isProcessingDependencyManagement

      public boolean isProcessingDependencyManagement()
    • isProcessingDependencies

      public boolean isProcessingDependencies()
    • isProcessingPluginDependencies

      public boolean isProcessingPluginDependencies()
    • isProcessPluginDependenciesInDependencyManagement

      public boolean isProcessPluginDependenciesInDependencyManagement()
    • isVerbose

      public boolean isVerbose()
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractVersionsUpdaterMojo
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractVersionsUpdaterMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - when things go wrong
      org.apache.maven.plugin.MojoFailureException - when things go wrong in a very bad way
      Since:
      1.0-alpha-1
      See Also:
    • validateInput

      protected void validateInput() throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractVersionsUpdaterMojo
      Validates input parameters
      Overrides:
      validateInput in class AbstractVersionsUpdaterMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - thrown if any of input parameters is invalid
    • update

      protected void update(MutableXMLStreamReader pom)
      Description copied from class: AbstractVersionsUpdaterMojo
      Updates the pom.
      Specified by:
      update in class AbstractVersionsUpdaterMojo
      Parameters:
      pom - the pom to update.
      Since:
      1.0-alpha-1
      See Also: