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
Fields Modifier and Type Field Description protected Map<String,org.codehaus.plexus.archiver.Archiver>archiversThe Jar archiver.static StringARTIFACT_CLASSIFIERstatic StringARTIFACT_TYPEprotected org.apache.maven.artifact.handler.manager.ArtifactHandlerManagerartifactHandlerManagerprotected FileclassesDirectoryDirectory containing the classes and resource files that should be packaged into the JAR.protected WeavePackagerMojoConfigconfigThe Packager configuration.protected StringfinalNameName of the generated JAR.protected FileoutputDirectoryDirectory containing the generated JAR.-
Fields inherited from class org.mule.weave.maven.plugin.AbstractWeaveMojo
dwTestFolder, dwTestResources, project, session, sourceFolder
-
-
Constructor Summary
Constructors Constructor Description WeavePackagerMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Generates the JAR.voidsetPackager(WeavePackagerMojoConfig config)-
Methods inherited from class org.mule.weave.maven.plugin.AbstractWeaveMojo
buildTestClassPathEnvironment, compileClasspathElements, getDeploymentRepository, testClasspathElements
-
-
-
-
Field Detail
-
ARTIFACT_TYPE
public static final String ARTIFACT_TYPE
- See Also:
- Constant Field Values
-
ARTIFACT_CLASSIFIER
public static final String ARTIFACT_CLASSIFIER
- See Also:
- Constant Field Values
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}", required=true, readonly=true) protected File outputDirectoryDirectory containing the generated JAR.
-
finalName
@Parameter(defaultValue="${project.build.finalName}", readonly=true) protected String finalNameName 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
@Parameter(name="packager") protected WeavePackagerMojoConfig config
The Packager configuration.
-
archivers
@Component protected Map<String,org.codehaus.plexus.archiver.Archiver> archivers
The Jar archiver.
-
artifactHandlerManager
@Component protected org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionGenerates the JAR.- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of an error.
-
setPackager
public void setPackager(WeavePackagerMojoConfig config)
-
-