Package org.mule.weave.maven.plugin
Class WeavePackagerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.mule.weave.maven.plugin.AbstractWeaveMojo
org.mule.weave.maven.plugin.WeavePackagerMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
@Execute(goal="package")
public class WeavePackagerMojo
extends AbstractWeaveMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Jar archiver.static final Stringstatic final Stringprotected org.apache.maven.artifact.handler.manager.ArtifactHandlerManagerprotected FileDirectory containing the classes and resource files that should be packaged into the JAR.protected WeavePackagerMojoConfigThe Packager configuration.protected StringName of the generated JAR.protected FileDirectory containing the generated JAR.Fields inherited from class org.mule.weave.maven.plugin.AbstractWeaveMojo
altDeploymentRepository, dwTestFolder, dwTestResources, project, session, sourceFolderFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.mule.weave.maven.plugin.AbstractWeaveMojo
buildTestClassPathEnvironment, compileClasspathElements, getDeploymentRepository, testClasspathElementsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
ARTIFACT_TYPE
- See Also:
-
ARTIFACT_CLASSIFIER
- See Also:
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}", required=true, readonly=true) protected File outputDirectoryDirectory containing the generated JAR. -
finalName
Name of the generated JAR. -
classesDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) protected File classesDirectoryDirectory containing the classes and resource files that should be packaged into the JAR. -
config
The Packager configuration. -
archivers
The Jar archiver. -
artifactHandlerManager
@Component protected org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager
-
-
Constructor Details
-
WeavePackagerMojo
public WeavePackagerMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionGenerates the JAR.- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of an error.
-