@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 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 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.Contextualizable
org.codehaus.plexus.context.ContextException
public void execute() throws MojoExecutionException
execute
in interface Mojo
MojoExecutionException
- in case of an error.public boolean updateExcludesInDeps(MavenProject project, List<Dependency> dependencies, List<Dependency> transitiveDeps) throws DependencyGraphBuilderException
DependencyGraphBuilderException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.