Class AbstractDependencyFilterMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.springframework.boot.maven.AbstractDependencyFilterMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractAotMojo, AbstractPackagerMojo, AbstractRunMojo

public abstract class AbstractDependencyFilterMojo extends org.apache.maven.plugin.AbstractMojo
A base mojo filtering the dependencies of the project.
Since:
1.1.0
Author:
Stephane Nicoll, David Turanski
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    ArtifactFilter to exclude test scope dependencies.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.project.MavenProject
    The Maven project.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Set<org.apache.maven.artifact.Artifact>
    filterDependencies(Set<org.apache.maven.artifact.Artifact> dependencies, org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters)
     
    protected List<URL>
    getDependencyURLs(org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters)
     
    protected void
    setExcludeGroupIds(String excludeGroupIds)
     
    protected void
    setExcludes(@Nullable List<Exclude> excludes)
     
    protected void
    setIncludes(@Nullable List<Include> includes)
     
    protected URL
    toURL(File file)
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.maven.plugin.Mojo

    execute
  • Field Details

    • project

      @Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
      The Maven project.
      Since:
      3.0.0
  • Constructor Details

    • AbstractDependencyFilterMojo

      public AbstractDependencyFilterMojo()
  • Method Details

    • setExcludes

      protected void setExcludes(@Nullable List<Exclude> excludes)
    • setIncludes

      protected void setIncludes(@Nullable List<Include> includes)
    • setExcludeGroupIds

      protected void setExcludeGroupIds(String excludeGroupIds)
    • getDependencyURLs

      protected List<URL> getDependencyURLs(org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • filterDependencies

      protected final Set<org.apache.maven.artifact.Artifact> filterDependencies(Set<org.apache.maven.artifact.Artifact> dependencies, org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • toURL

      protected URL toURL(File file)