@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME)
public class ExtensionPackageMojo
extends AbstractPackagePluginMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
MULE_PLUGIN_JSON_JAR_DESTINATION |
CLASSES, MULE_PLUGIN_CLASSIFIER, MULE_PLUGIN_JSON, PLUGIN_PROPERTIES_FILE_NAME, REPOSITORY_FOLDER, RESERVED_DESTINATION_REPOSITORY, RESERVED_FOLDER_MULE_ARTIFACT, SERVICE_PROPERTIES_FILE_NAMEappDirectory, finalName, outputDirectory, project| Constructor and Description |
|---|
ExtensionPackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArtifactProperties(ModuleArchiver archiver)
Adds no plugin.properties as extensions will have an internal "maven-like" repository that will work directly with the
mule-plugin.json
|
protected void |
addDependencies(ModuleArchiver archiver)
Copies the complete set of "compile" and "runtime" dependencies of the current
AbstractMuleMojo.project, from the temporary folder
generated in AbstractMuleMojo.outputDirectory/RepositoryMirrorMojo.REPOSITORY_FOLDER into the current archiver, so
that the final bundle contains the full set of artifacts for the current plugin. |
protected void |
addToArchiver(ModuleArchiver archiver) |
protected void |
doAddArtifactProperties(File pluginPropertiesFile)
Adds no plugin.properties as extensions will have an internal "maven-like" repository that will work directly with the
mule-plugin.json this there's no need to populate the
pluginPropertiesFile. |
protected String |
getArtifactClassifier() |
protected String |
getArtifactType() |
protected File |
getMuleArtifactFile() |
addClasses, addPOMFile, createMulePlugin, doExecute, execute, getPluginDependencies, initialize, walkWhileCopyingFolderpublic static final String MULE_PLUGIN_JSON_JAR_DESTINATION
protected void addToArchiver(ModuleArchiver archiver) throws org.apache.maven.plugin.MojoFailureException
addToArchiver in class AbstractPackagePluginMojoorg.apache.maven.plugin.MojoFailureExceptionprotected void addDependencies(ModuleArchiver archiver)
AbstractMuleMojo.project, from the temporary folder
generated in AbstractMuleMojo.outputDirectory/RepositoryMirrorMojo.REPOSITORY_FOLDER into the current archiver, so
that the final bundle contains the full set of artifacts for the current plugin.
The temporary generated folder is created by the RepositoryMirrorMojo.addDependencies in class AbstractPackagePluginMojoarchiver - to store all dependenciesorg.apache.maven.plugin.MojoFailureException - if there's an issue while working with the files under
AbstractMuleMojo.outputDirectory/RepositoryMirrorMojo.REPOSITORY_FOLDERprotected String getArtifactType()
getArtifactType in class AbstractPackagePluginMojoprotected String getArtifactClassifier()
getArtifactClassifier in class AbstractPackagePluginMojoprotected void doAddArtifactProperties(File pluginPropertiesFile) throws org.apache.maven.plugin.MojoFailureException
pluginPropertiesFile.doAddArtifactProperties in class AbstractPackagePluginMojopluginPropertiesFile - org.codehaus.plexus.archiver.ArchiverExceptionorg.apache.maven.plugin.MojoFailureExceptionTODO(fernandezlautaro): MULE-11136 refactor this object (and its superclasses) when working in this jira (every plugin
will have mule-plugin.json file)protected void addArtifactProperties(ModuleArchiver archiver) throws org.codehaus.plexus.archiver.ArchiverException
addArtifactProperties in class AbstractPackagePluginMojoarchiver - org.codehaus.plexus.archiver.ArchiverExceptionTODO(fernandezlautaro): MULE-11136 refactor this object (and its superclasses) when working in this jira (every plugin
will have mule-plugin.json file)protected File getMuleArtifactFile()
getMuleArtifactFile in class AbstractMuleMojoCopyright © 2017 MuleSoft, Inc.. All rights reserved.