Class ShadeMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.shade.mojo.ShadeMojo
-
- All Implemented Interfaces:
ContextEnabled
,Mojo
@Mojo(name="shade", defaultPhase=PACKAGE, threadSafe=true, requiresDependencyResolution=RUNTIME) public class ShadeMojo extends AbstractMojo
Mojo that performs shading delegating to the Shader component.- Author:
- Jason van Zyl, Mauro Talevi, David Blevins, Hiram Chirino
-
-
Field Summary
Fields Modifier and Type Field Description protected ArtifactResolver
artifactResolver
Artifact resolver, needed to download source jars for inclusion in classpath.protected ArtifactRepository
localRepository
Local maven repository.protected java.util.List<ArtifactRepository>
remoteArtifactRepositories
Remote repositories which will be searched for source attachments.
-
Constructor Summary
Constructors Constructor Description ShadeMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
boolean
updateExcludesInDeps(MavenProject project, java.util.List<Dependency> dependencies, java.util.List<Dependency> transitiveDeps)
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
remoteArtifactRepositories
@Parameter(readonly=true, required=true, defaultValue="${project.remoteArtifactRepositories}") protected java.util.List<ArtifactRepository> remoteArtifactRepositories
Remote repositories which will be searched for source attachments.
-
localRepository
@Parameter(readonly=true, required=true, defaultValue="${localRepository}") protected ArtifactRepository localRepository
Local maven repository.
-
artifactResolver
@Component protected ArtifactResolver artifactResolver
Artifact resolver, needed to download source jars for inclusion in classpath.
-
-
Method Detail
-
execute
public void execute() throws MojoExecutionException
- Throws:
MojoExecutionException
- in case of an error.
-
updateExcludesInDeps
public boolean updateExcludesInDeps(MavenProject project, java.util.List<Dependency> dependencies, java.util.List<Dependency> transitiveDeps) throws DependencyGraphBuilderException
- Throws:
DependencyGraphBuilderException
-
-