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
  • 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(List<Exclude> excludes)
    • setIncludes

      protected void setIncludes(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)