public abstract class AbstractJarMojo extends 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 MavenProject |
getProject() |
protected abstract String |
getType()
Overload this to produce a test-jar, for example.
|
getLog, getPluginContext, setLog, setPluginContext
protected abstract File getClassesDirectory()
protected final MavenProject getProject()
protected abstract String getClassifier()
protected abstract String getType()
protected File getDefaultManifestFile()
public File createArchive() throws MojoExecutionException
MojoExecutionException
public void execute() throws MojoExecutionException
MojoExecutionException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.