|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.minijar.AbstractPluginMojo
public abstract class AbstractPluginMojo
Common class for the minijar mojos
Field Summary | |
---|---|
protected java.io.File |
buildDirectory
|
protected java.util.HashSet |
excludeDependencies
If provided the default is to include all dependencies but remove the ones specified. |
protected java.util.HashSet |
excludeDependenciesInRelocation
If provided the default is to relocate all dependencies but exclude the ones specified. |
protected java.util.HashSet |
includeDependencies
If provided the default is to include no dependencies but the ones specified. |
protected java.util.HashSet |
includeDependenciesInRelocation
If provided the default is to relocate no dependencies but the ones specified. |
protected java.util.HashSet |
keepUnusedClasses
Explicitly mark classes matching the given patterns to be kept - no matter whether the analysis of minijar suggests otherwise. |
protected java.util.HashSet |
keepUnusedClassesFromArtifacts
Explicitly mark all classes from the specified artifacts to be kept - no matter whether the analysis of minijar would suggest to remove (some of) them. |
protected boolean |
stripUnusedClasses
By default minijar will analyse the class dependencies and remove classes that are not required for the execution of the project. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractPluginMojo()
|
Method Summary | |
---|---|
void |
execute()
Main entry point |
abstract void |
execute(java.util.Set removable,
java.util.Set dependencies,
java.util.Set relocateDependencies)
|
protected org.apache.maven.project.MavenProject |
getProject()
|
boolean |
isInKeepUnusedClasses(java.lang.String clazzname)
|
boolean |
isInKeepUnusedClassesFromArtifacts(org.apache.maven.artifact.Artifact artifact)
|
protected java.lang.String |
replaceVariables(java.util.Map pVariables,
java.lang.String pExpression)
Substitute the variables in the given expression with the values from the Map. |
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 |
Field Detail |
---|
protected java.io.File buildDirectory
protected java.util.HashSet includeDependenciesInRelocation
protected java.util.HashSet excludeDependenciesInRelocation
protected java.util.HashSet includeDependencies
protected java.util.HashSet excludeDependencies
protected boolean stripUnusedClasses
protected java.util.HashSet keepUnusedClassesFromArtifacts
protected java.util.HashSet keepUnusedClasses
Constructor Detail |
---|
public AbstractPluginMojo()
Method Detail |
---|
protected org.apache.maven.project.MavenProject getProject()
protected java.lang.String replaceVariables(java.util.Map pVariables, java.lang.String pExpression)
pVariables
- pExpression
-
public boolean isInKeepUnusedClassesFromArtifacts(org.apache.maven.artifact.Artifact artifact)
public boolean isInKeepUnusedClasses(java.lang.String clazzname)
public abstract void execute(java.util.Set removable, java.util.Set dependencies, java.util.Set relocateDependencies) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |