Package org.apache.maven.plugins.jar
Class JarMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.jar.AbstractJarMojo
-
- org.apache.maven.plugins.jar.JarMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="jar", defaultPhase=PACKAGE, requiresProject=true, threadSafe=true, requiresDependencyResolution=RUNTIME) public class JarMojo extends AbstractJarMojo
Build a JAR from the current project.- Version:
- $Id$
- Author:
- Emmanuel Venisse
-
-
Constructor Summary
Constructors Constructor Description JarMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected File
getClassesDirectory()
Return the specific output directory to serve as the root for the archive.protected String
getClassifier()
Overload this to produce a jar with another classifier, for example a test-jar.protected String
getType()
Overload this to produce a test-jar, for example.-
Methods inherited from class org.apache.maven.plugins.jar.AbstractJarMojo
createArchive, execute, getJarFile, getProject, hasClassifier
-
-
-
-
Method Detail
-
getClassifier
protected String getClassifier()
Overload this to produce a jar with another classifier, for example a test-jar.- Specified by:
getClassifier
in classAbstractJarMojo
- Returns:
- get the classifier.
-
getType
protected String getType()
Overload this to produce a test-jar, for example.- Specified by:
getType
in classAbstractJarMojo
- Returns:
- return the type.
-
getClassesDirectory
protected File getClassesDirectory()
Return the specific output directory to serve as the root for the archive.- Specified by:
getClassesDirectory
in classAbstractJarMojo
- Returns:
- get classes directory.
-
-