public abstract class AbstractJarMojo
extends org.apache.maven.plugin.AbstractMojo
Constructor and Description |
---|
AbstractJarMojo() |
Modifier and Type | Method and Description |
---|---|
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 org.apache.maven.project.MavenProject |
getProject() |
protected abstract String |
getType()
Overload this to produce a test-jar, for example.
|
protected abstract File getClassesDirectory()
protected final org.apache.maven.project.MavenProject getProject()
protected abstract String getClassifier()
protected abstract String getType()
protected File getDefaultManifestFile()
public 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
Copyright © 2014. All rights reserved.