|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.jar.AbstractJarMojo
public abstract class AbstractJarMojo
Base class for creating a jar from project classes.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractJarMojo()
|
Method Summary | |
---|---|
java.io.File |
createArchive()
Generates the JAR. |
void |
execute()
Generates the JAR. |
protected abstract java.io.File |
getClassesDirectory()
Return the specific output directory to serve as the root for the archive. |
protected abstract java.lang.String |
getClassifier()
Overload this to produce a test-jar, for example. |
protected static java.io.File |
getJarFile(java.io.File basedir,
java.lang.String finalName,
java.lang.String classifier)
|
protected org.apache.maven.project.MavenProject |
getProject()
|
protected abstract java.lang.String |
getType()
Overload this to produce a test-jar, for example. |
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 |
Constructor Detail |
---|
public AbstractJarMojo()
Method Detail |
---|
protected abstract java.io.File getClassesDirectory()
protected final org.apache.maven.project.MavenProject getProject()
protected abstract java.lang.String getClassifier()
protected abstract java.lang.String getType()
protected static java.io.File getJarFile(java.io.File basedir, java.lang.String finalName, java.lang.String classifier)
public java.io.File createArchive() 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |