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:
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 ClassesModifier and TypeClassDescriptionprotected static class
ArtifactFilter
to exclude test scope dependencies.protected static class
ArtifactFilter
that only include runtime scopes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProject
The Maven project.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Set<org.apache.maven.artifact.Artifact>
filterDependencies
(Set<org.apache.maven.artifact.Artifact> dependencies, org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters) getDependencyURLs
(org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter... additionalFilters) protected void
setExcludeGroupIds
(String excludeGroupIds) protected void
setExcludes
(List<Exclude> excludes) protected void
setIncludes
(List<Include> includes) protected URL
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
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe Maven project.- Since:
- 3.0.0
-
-
Constructor Details
-
AbstractDependencyFilterMojo
public AbstractDependencyFilterMojo()
-
-
Method Details
-
setExcludes
-
setIncludes
-
setExcludeGroupIds
-
toURL
-