|
||||||||||
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 File |
buildDirectory
|
protected HashSet |
excludeDependencies
If provided the default is to include all dependencies but remove the ones specified. |
protected HashSet |
excludeDependenciesInRelocation
If provided the default is to relocate all dependencies but exclude the ones specified. |
protected HashSet |
includeDependencies
If provided the default is to include no dependencies but the ones specified. |
protected HashSet |
includeDependenciesInRelocation
If provided the default is to relocate no dependencies but the ones specified. |
protected HashSet |
keepUnusedClasses
Explicitly mark classes matching the given patterns to be kept - no matter whether the analysis of minijar suggests otherwise. |
protected 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(Set removable,
Set dependencies,
Set relocateDependencies)
|
protected org.apache.maven.project.MavenProject |
getProject()
|
boolean |
isInKeepUnusedClasses(String clazzname)
|
boolean |
isInKeepUnusedClassesFromArtifacts(org.apache.maven.artifact.Artifact artifact)
|
protected String |
replaceVariables(Map pVariables,
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 File buildDirectory
protected HashSet includeDependenciesInRelocation
protected HashSet excludeDependenciesInRelocation
protected HashSet includeDependencies
protected HashSet excludeDependencies
protected boolean stripUnusedClasses
protected HashSet keepUnusedClassesFromArtifacts
protected HashSet keepUnusedClasses
Constructor Detail |
---|
public AbstractPluginMojo()
Method Detail |
---|
protected org.apache.maven.project.MavenProject getProject()
protected String replaceVariables(Map pVariables, String pExpression)
pVariables
- pExpression
-
public boolean isInKeepUnusedClassesFromArtifacts(org.apache.maven.artifact.Artifact artifact)
public boolean isInKeepUnusedClasses(String clazzname)
public abstract void execute(Set removable, Set dependencies, 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 |