@Mojo(name="jar",
defaultPhase=PACKAGE,
requiresProject=true,
threadSafe=true,
requiresDependencyResolution=RUNTIME)
public class JarMojo
extends AbstractJarMojo
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
classesDirectory
Directory containing the classes and resource files that should be packaged into the JAR.
|
private java.lang.String |
classifier
Classifier to add to the artifact generated.
|
| Constructor and Description |
|---|
JarMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
getClassesDirectory()
Return the specific output directory to serve as the root for the archive.
|
protected java.lang.String |
getClassifier()
Overload this to produce a jar with another classifier, for example a test-jar.
|
protected java.lang.String |
getType()
Overload this to produce a test-jar, for example.
|
createArchive, execute, getJarFile, getProject, hasClassifier@Parameter(defaultValue="${project.build.outputDirectory}",
required=true)
private java.io.File classesDirectory
@Parameter private java.lang.String classifier
protected java.lang.String getClassifier()
getClassifier in class AbstractJarMojoprotected java.lang.String getType()
getType in class AbstractJarMojoprotected java.io.File getClassesDirectory()
getClassesDirectory in class AbstractJarMojo