public abstract class AbstractPackagePluginMojo extends AbstractMuleMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
MULE_PLUGIN_CLASSIFIER |
appDirectory, finalName, META_INF, MULE_ARTIFACT, MULE_ARTIFACT_JSON, MULE_ARTIFACT_TYPE, MULE_PLUGIN_JSON_JAR_DESTINATION, outputDirectory, project, RESERVED_DESTINATION_REPOSITORY, RESERVED_FOLDER_MULE_ARTIFACT| Constructor and Description |
|---|
AbstractPackagePluginMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArtifactProperties(ModuleArchiver moduleArchiver) |
protected void |
addClasses(ModuleArchiver archiver)
|
protected void |
addDependencies(ModuleArchiver archiver) |
protected void |
addPOMFile(ModuleArchiver archiver)
Adds the pom file for this project into META-INF/maven/${groupId}/${artifactId}/.
|
protected void |
addToArchiver(ModuleArchiver archiver) |
protected void |
createMulePlugin(File plugin) |
protected abstract void |
doAddArtifactProperties(File pluginPropertiesFile) |
protected void |
doExecute()
Method to give the capability of contribute with the {@link AbstractPackagePluginMojo#execute()
|
void |
execute() |
protected String |
getArtifactClassifier() |
protected Set<String> |
getPluginDependencies() |
protected void |
initialize()
Method to give the capability of initialize implementations of this class as the first action of the
execute() |
protected void |
walkWhileCopyingFolder(ModuleArchiver archiver,
String destination,
Path startPath)
Copies the complete files encountered in
AbstractMuleMojo.outputDirectory/folder, into the current archiver |
getMuleArtifactFilepublic static final String MULE_PLUGIN_CLASSIFIER
protected abstract void doAddArtifactProperties(File pluginPropertiesFile) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionpublic final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected String getArtifactClassifier()
protected void createMulePlugin(File plugin) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, org.codehaus.plexus.archiver.ArchiverException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionorg.codehaus.plexus.archiver.ArchiverExceptionprotected void addToArchiver(ModuleArchiver archiver) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void addPOMFile(ModuleArchiver archiver)
archiver - to store the current dependency fileprotected void addArtifactProperties(ModuleArchiver moduleArchiver) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void addDependencies(ModuleArchiver archiver) throws org.codehaus.plexus.archiver.ArchiverException
org.codehaus.plexus.archiver.ArchiverExceptionprotected void initialize()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
execute()org.apache.maven.plugin.MojoFailureException - when an initialization failure occursorg.apache.maven.plugin.MojoExecutionException - when an initialization error occursprotected void doExecute()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException - when an execution failure occursorg.apache.maven.plugin.MojoExecutionException - when an execution error occursprotected void walkWhileCopyingFolder(ModuleArchiver archiver, String destination, Path startPath)
AbstractMuleMojo.outputDirectory/folder, into the current archiverarchiver - to store all dependenciesdestination - folder in which all found files will be stored inside of the archive filestartPath - path to introspectorg.apache.maven.plugin.MojoFailureException - if there's an issue while working with the files under AbstractMuleMojo.outputDirectory/folderprotected void addClasses(ModuleArchiver archiver)
archiver - to store the CLASSES structureCopyright © 2019 MuleSoft, Inc.. All rights reserved.