public class MulePluginArtifactLoaderUtils extends Object
Artifacts| Constructor and Description |
|---|
MulePluginArtifactLoaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<org.mule.runtime.api.deployment.meta.MulePluginModel> |
readMulePluginModel(org.apache.maven.artifact.Artifact artifact)
Returns a descriptor
MulePluginModel for any given artifact if possible of reading it. |
static String |
toZipPath(String filePath) |
public static Optional<org.mule.runtime.api.deployment.meta.MulePluginModel> readMulePluginModel(org.apache.maven.artifact.Artifact artifact)
MulePluginModel for any given artifact if possible of reading it.
Scenarios where it's not possible:
artifact is not a Mule plugin, such as any Java library (e.g.: guava, apache, etc.)artifact is a Mule plugin, but doesn't have a AbstractMuleMojo.MULE_PLUGIN_JSON_JAR_DESTINATIONartifact - that might contain the AbstractMuleMojo.MULE_PLUGIN_JSON_JAR_DESTINATIONMulePluginModel if exists in the current JAR file, Optional.empty() otherwise (file-commons, guava,
etc.)Copyright © 2020 MuleSoft, Inc.. All rights reserved.