@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
@Execute(goal="package")
public class WeavePackagerMojo
extends AbstractWeaveMojo
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.codehaus.plexus.archiver.Archiver> |
archivers
The Jar archiver.
|
static String |
ARTIFACT_CLASSIFIER |
static String |
ARTIFACT_TYPE |
protected org.apache.maven.artifact.handler.manager.ArtifactHandlerManager |
artifactHandlerManager |
protected File |
classesDirectory
Directory containing the classes and resource files that should be packaged into the JAR.
|
protected WeavePackagerMojoConfig |
config
The Packager configuration.
|
protected String |
finalName
Name of the generated JAR.
|
protected File |
outputDirectory
Directory containing the generated JAR.
|
dwTestFolder, dwTestResources, project, session, sourceFolder| Constructor and Description |
|---|
WeavePackagerMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Generates the JAR.
|
void |
setPackager(WeavePackagerMojoConfig config) |
buildTestClassPathEnvironment, compileClasspathElements, getDeploymentRepository, testClasspathElementspublic static final String ARTIFACT_TYPE
public static final String ARTIFACT_CLASSIFIER
@Parameter(defaultValue="${project.build.directory}",
required=true,
readonly=true)
protected File outputDirectory
@Parameter(defaultValue="${project.build.finalName}",
readonly=true)
protected String finalName
@Parameter(defaultValue="${project.build.outputDirectory}",
required=true)
protected File classesDirectory
@Parameter(name="packager") protected WeavePackagerMojoConfig config
@Component protected Map<String,org.codehaus.plexus.archiver.Archiver> archivers
@Component protected org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - in case of an error.public void setPackager(WeavePackagerMojoConfig config)
Copyright © 2024. All rights reserved.