@Mojo(name="shade", defaultPhase=PACKAGE, threadSafe=true, requiresDependencyResolution=RUNTIME) public class ShadeMojo extends AbstractMojo implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
| Modifier and Type | Field and Description |
|---|---|
protected ArtifactFactory |
artifactFactory
Artifact factory, needed to download source jars for inclusion in classpath.
|
protected ArtifactResolver |
artifactResolver
Artifact resolver, needed to download source jars for inclusion in classpath.
|
protected ArtifactRepository |
localRepository
Local maven repository.
|
protected List<ArtifactRepository> |
remoteArtifactRepositories
Remote repositories which will be searched for source attachments.
|
| Constructor and Description |
|---|
ShadeMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextualize(org.codehaus.plexus.context.Context context) |
void |
execute() |
boolean |
updateExcludesInDeps(MavenProject project,
List<Dependency> dependencies,
List<Dependency> transitiveDeps) |
getLog, getPluginContext, setLog, setPluginContext@Parameter(readonly=true, required=true, defaultValue="${project.remoteArtifactRepositories}") protected List<ArtifactRepository> remoteArtifactRepositories
@Parameter(readonly=true, required=true, defaultValue="${localRepository}") protected ArtifactRepository localRepository
@Component protected ArtifactFactory artifactFactory
@Component protected ArtifactResolver artifactResolver
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextExceptionpublic void execute()
throws MojoExecutionException
execute in interface MojoMojoExecutionExceptionpublic boolean updateExcludesInDeps(MavenProject project, List<Dependency> dependencies, List<Dependency> transitiveDeps) throws DependencyGraphBuilderException
DependencyGraphBuilderExceptionCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.