Class AbstractResolveMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GoOfflineMojo, ResolveDependenciesMojo, ResolvePluginsMojo

public abstract class AbstractResolveMojo extends AbstractDependencyFilterMojo
  • Field Details

    • outputFile

      @Parameter(property="outputFile") protected File outputFile
      If specified, this parameter causes the dependencies to be written to the path specified instead of the console.
      Since:
      2.0
    • appendOutput

      @Parameter(property="appendOutput", defaultValue="false") protected boolean appendOutput
      Whether to append outputs into the output file or overwrite it.
      Since:
      2.2
    • excludeReactor

      @Parameter(property="excludeReactor", defaultValue="true") protected boolean excludeReactor
      Don't resolve plugins that are in the current reactor.
      Since:
      2.7
    • useJvmChmod

      @Parameter protected boolean useJvmChmod
      not used in this goal
    • ignorePermissions

      @Parameter protected boolean ignorePermissions
      not used in this goal
  • Constructor Details

    • AbstractResolveMojo

      public AbstractResolveMojo()
  • Method Details

    • getArtifactsFilter

      protected org.apache.maven.shared.artifact.filter.collection.FilterArtifacts getArtifactsFilter()
      Returns:
      FilterArtifacts
    • resolveArtifactDependencies

      protected Set<org.apache.maven.artifact.Artifact> resolveArtifactDependencies(org.apache.maven.shared.transfer.dependencies.DependableCoordinate artifact) throws org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException
      This method resolves all transitive dependencies of an artifact.
      Parameters:
      artifact - the artifact used to retrieve dependencies
      Returns:
      resolved set of dependencies
      Throws:
      org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException - in case of error while resolving artifacts.