|
|||||||||
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 | |
---|---|
File |
createArchive()
Generates the JAR. |
void |
execute()
Generates the JAR. |
protected abstract File |
getClassesDirectory()
Return the specific output directory to serve as the root for the archive. |
protected abstract String |
getClassifier()
Overload this to produce a jar with another classifier, for example a test-jar. |
protected File |
getDefaultManifestFile()
Default Manifest location. |
protected static File |
getJarFile(File basedir,
String finalName,
String classifier)
|
protected MavenProject |
getProject()
|
protected abstract 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 File getClassesDirectory()
protected final MavenProject getProject()
protected abstract String getClassifier()
protected abstract String getType()
protected static File getJarFile(File basedir, String finalName, String classifier)
protected File getDefaultManifestFile()
public File createArchive() throws MojoExecutionException
MojoExecutionException
public void execute() throws MojoExecutionException
MojoExecutionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |