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:
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 Summary

    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.FilterArtifacts filters)
     
    protected final org.apache.maven.shared.artifact.filter.collection.FilterArtifacts
    getFilters(org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters)
    Return artifact filters configured for this MOJO.
    protected void
    setExcludeGroupIds(String excludeGroupIds)
     
    protected void
     
    protected void
     

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

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

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

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

    execute
  • 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)
    • filterDependencies

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

      protected final org.apache.maven.shared.artifact.filter.collection.FilterArtifacts getFilters(org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters)
      Return artifact filters configured for this MOJO.
      Parameters:
      additionalFilters - optional additional filters to apply
      Returns:
      the filters