@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 test-classes directory, to serve as the root of the tests jar.
|
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, getDefaultManifestFile, getJarFile, getProject
getLog, getPluginContext, setLog, setPluginContext
protected String getClassifier()
AbstractJarMojo
getClassifier
in class AbstractJarMojo
protected String getType()
AbstractJarMojo
getType
in class AbstractJarMojo
protected File getClassesDirectory()
getClassesDirectory
in class AbstractJarMojo
public void execute() throws MojoExecutionException
AbstractJarMojo
execute
in interface Mojo
execute
in class AbstractJarMojo
MojoExecutionException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.