@Mojo(name="test-jar", defaultPhase=PACKAGE, requiresProject=true, threadSafe=true, requiresDependencyResolution=TEST) public class TestJarMojo extends AbstractJarMojo
| Constructor and Description |
|---|
TestJarMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Generates the JAR.
|
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.
|
createArchive, getJarFile, getProject, hasClassifiergetLog, getPluginContext, setLog, setPluginContextprotected String getClassifier()
getClassifier in class AbstractJarMojoprotected String getType()
getType in class AbstractJarMojoprotected File getClassesDirectory()
getClassesDirectory in class AbstractJarMojopublic void execute()
throws MojoExecutionException
execute in interface Mojoexecute in class AbstractJarMojoMojoExecutionException - in case of an error.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.