@Mojo(name="extension-descriptor",
defaultPhase=COMPILE,
threadSafe=true)
public class ExtensionDescriptorMojo
extends AbstractMuleMojo
AbstractMuleMojo.MULE_ARTIFACT_JSON in META-INF folder.
If it doesn't exists, it assumes it's a PREFIX_SMART_CONNECTOR_NAME and ends with
SUFFIX_SMART_CONNECTOR_NAMEMODULE_ROOT_ELEMENT| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_XML |
static String |
SNAPSHOT_SUFFIX |
static String |
VALIDATE_XML |
static String |
XML_BASED_EXTENSION_MODEL_LOADER |
appDirectory, finalName, 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 |
|---|
ExtensionDescriptorMojo() |
| Modifier and Type | Method and Description |
|---|---|
static Path |
autoGeneratedDescriptorPath(File outputDirectory)
Returns a
Path to an auto generated descriptor. |
static Path |
descriptorPathOrFail(File outputDirectory)
Returns a
Path to an existing descriptor file or fails. |
void |
execute() |
getMuleArtifactFilepublic static final String XML_BASED_EXTENSION_MODEL_LOADER
public static final String RESOURCE_XML
public static final String VALIDATE_XML
public static final String SNAPSHOT_SUFFIX
public static Path descriptorPathOrFail(File outputDirectory) throws org.apache.maven.plugin.MojoFailureException
Path to an existing descriptor file or fails.outputDirectory - to look for the current output directoryPath to a descriptor fileorg.apache.maven.plugin.MojoFailureException - if the descriptor file is absent (probably because this Mojo hasn't been executed)public static Path autoGeneratedDescriptorPath(File outputDirectory) throws org.apache.maven.plugin.MojoFailureException
Path to an auto generated descriptor.outputDirectory - to look for the current output directoryPath to a descriptororg.apache.maven.plugin.MojoFailureExceptionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2018 MuleSoft, Inc.. All rights reserved.