org.apache.maven.plugin.jar
public abstract class AbstractJarMojo extends org.apache.maven.plugin.AbstractMojo
Constructor and Description |
---|
AbstractJarMojo() |
Modifier and Type | Method and Description |
---|---|
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 jar with another classifier, for example a test-jar.
|
protected java.io.File |
getDefaultManifestFile()
Default Manifest location.
|
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.
|
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)
protected java.io.File getDefaultManifestFile()
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
Copyright © 2014. All Rights Reserved.