Package org.springframework.boot.maven
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:
AbstractRunMojo
,RepackageMojo
public abstract class AbstractDependencyFilterMojo extends org.apache.maven.plugin.AbstractMojo
A base mojo filtering the dependencies of the project.- Since:
- 1.1
Constructor Summary
Constructors Constructor Description AbstractDependencyFilterMojo()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<org.apache.maven.artifact.Artifact>
filterDependencies(Set<org.apache.maven.artifact.Artifact> dependencies, org.apache.maven.shared.artifact.filter.collection.FilterArtifacts filters)
protected 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
setExcludes(List<Exclude> excludes)
protected void
setIncludes(List<Include> includes)
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
Constructor Detail
AbstractDependencyFilterMojo
public AbstractDependencyFilterMojo()
Method Detail
setExcludes
protected void setExcludes(List<Exclude> excludes)
setIncludes
protected void setIncludes(List<Include> includes)
setExcludeGroupIds
protected void setExcludeGroupIds(String excludeGroupIds)
filterDependencies
protected 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