org.apache.maven.plugins.shade.mojo
Class ShadeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.shade.mojo.ShadeMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class ShadeMojo
- extends AbstractMojo
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Mojo that performs shading delegating to the Shader component.
- Author:
- Jason van Zyl, Mauro Talevi, David Blevins, Hiram Chirino
- Is defined by the goal name:
- shade
- Is bound to the specified phase of the standard build lifecycle:
- package
- Requires the dependencies in this specified scope:
- runtime
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
remoteArtifactRepositories
protected List remoteArtifactRepositories
- Remote repositories which will be searched for source attachments.
- Is defined by:
- default-value:
- ${project.remoteArtifactRepositories}
- Is readonly.
- Is required.
localRepository
protected ArtifactRepository localRepository
- Local maven repository.
- Is defined by:
- default-value:
- ${localRepository}
- Is readonly.
- Is required.
artifactFactory
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
- Artifact factory, needed to download source jars for inclusion in classpath.
- Is a Plexus component defined by:
- Is readonly.
- Is required.
artifactResolver
protected ArtifactResolver artifactResolver
- Artifact resolver, needed to download source jars for inclusion in classpath.
- Is a Plexus component defined by:
- Is readonly.
- Is required.
ShadeMojo
public ShadeMojo()
contextualize
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
- Specified by:
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
execute
public void execute()
throws MojoExecutionException
- Specified by:
execute
in interface Mojo
- Throws:
MojoExecutionException
updateExcludesInDeps
public boolean updateExcludesInDeps(MavenProject project,
List<Dependency> dependencies,
List<Dependency> transitiveDeps)
throws DependencyTreeBuilderException
- Throws:
DependencyTreeBuilderException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.