@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME)
public class ExtensionPackageMojo
extends org.mule.plugin.maven.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_NAME| Constructor and Description |
|---|
ExtensionPackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArtifactProperties(org.mule.plugin.maven.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(org.mule.plugin.maven.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(org.mule.plugin.maven.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(org.mule.plugin.maven.ModuleArchiver archiver)
throws org.apache.maven.plugin.MojoFailureException
addToArchiver in class org.mule.plugin.maven.AbstractPackagePluginMojoorg.apache.maven.plugin.MojoFailureExceptionprotected void addDependencies(org.mule.plugin.maven.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 org.mule.plugin.maven.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 org.mule.plugin.maven.AbstractPackagePluginMojoprotected String getArtifactClassifier()
getArtifactClassifier in class org.mule.plugin.maven.AbstractPackagePluginMojoprotected void doAddArtifactProperties(File pluginPropertiesFile) throws org.apache.maven.plugin.MojoFailureException
pluginPropertiesFile.doAddArtifactProperties in class org.mule.plugin.maven.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(org.mule.plugin.maven.ModuleArchiver archiver)
throws org.codehaus.plexus.archiver.ArchiverException
addArtifactProperties in class org.mule.plugin.maven.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 org.mule.plugin.maven.AbstractMuleMojoCopyright © 2017. All rights reserved.