org.fusesource.mvnplugins.uberize.mojo
Class UberizeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.fusesource.mvnplugins.uberize.mojo.UberizeMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class UberizeMojo
- extends org.apache.maven.plugin.AbstractMojo
Mojo that creates an uber jar and optionally shades, relocate,
or merges the source jar contents.
- Author:
- Jason van Zyl, Mauro Talevi, David Blevins, Hiram Chirino
- Is defined by the goal name:
- uberize
- Is bound to the specified phase of the standard build lifecycle:
- package
- Requires the dependencies in this specified scope:
- runtime
|
Field Summary |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
Artifact factory, needed to download source jars for inclusion in classpath. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
Artifact resolver, needed to download source jars for inclusion in classpath. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Local maven repository. |
protected List |
remoteArtifactRepositories
Remote repositories which will be searched for source attachments. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
remoteArtifactRepositories
protected List remoteArtifactRepositories
- Remote repositories which will be searched for source attachments.
- Is defined by:
- expression:
- ${project.remoteArtifactRepositories}
- Is readonly.
- Is required.
localRepository
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
- Local maven repository.
- Is defined by:
- expression:
- ${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:
- role:
- org.apache.maven.artifact.factory.ArtifactFactory
- Is readonly.
- Is required.
artifactResolver
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
- Artifact resolver, needed to download source jars for inclusion in classpath.
- Is a Plexus component defined by:
- role:
- org.apache.maven.artifact.resolver.ArtifactResolver
- Is readonly.
- Is required.
UberizeMojo
public UberizeMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
updateExcludesInDeps
public boolean updateExcludesInDeps(org.apache.maven.project.MavenProject project,
List dependencies,
List transitiveDeps)
throws org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException
- Throws:
org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException
Copyright © 2009-2010 Progress Software Inc.. All Rights Reserved.