public class ArtifactUtils extends Object
| Constructor and Description |
|---|
ArtifactUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ArtifactCoordinates |
getApplicationArtifactCoordinates(org.apache.maven.model.Model pomModel) |
protected static String |
getAttribute(org.codehaus.plexus.util.xml.Xpp3Dom tag,
String attributeName) |
static org.mule.maven.client.api.model.BundleDescriptor |
getBundleDescriptor(org.apache.maven.model.Model pomModel) |
static org.mule.maven.client.api.model.BundleDescriptor |
getPomProjectBundleDescriptor(org.apache.maven.model.Model pomModel) |
static boolean |
isValidMulePlugin(Artifact artifact)
Checks if a
Artifact instance represents a mule-plugin. |
static List<Artifact> |
toApplicationModelArtifacts(List<org.mule.maven.client.api.model.BundleDependency> appDependencies) |
static Artifact |
toArtifact(org.mule.maven.client.api.model.BundleDependency bundleDependency)
Convert a
BundleDependency instance to Artifact. |
static ArtifactCoordinates |
toArtifactCoordinates(org.mule.maven.client.api.model.BundleDescriptor bundleDescriptor)
Convert a
BundleDescriptor instance to ArtifactCoordinates. |
static List<Artifact> |
toArtifacts(Collection<org.mule.maven.client.api.model.BundleDependency> dependencies)
Converts a
List to a List. |
static org.mule.maven.client.api.model.BundleDescriptor |
toBundleDescriptor(ArtifactCoordinates artifactCoordinates)
Converts a
ArtifactCoordinates instance to a BundleDescriptor instance. |
static org.mule.maven.client.api.model.BundleDescriptor |
toBundleDescriptor(org.apache.maven.model.Dependency dependency)
Converts a
Dependency instance to a BundleDescriptor instance. |
static List<Artifact> |
updateArtifactsSharedState(List<org.mule.maven.client.api.model.BundleDependency> appDependencies,
List<Artifact> artifacts,
org.apache.maven.model.Model pomModel) |
static void |
updateScopeIfDomain(Artifact artifact) |
public static ArtifactCoordinates toArtifactCoordinates(org.mule.maven.client.api.model.BundleDescriptor bundleDescriptor)
BundleDescriptor instance to ArtifactCoordinates.bundleDescriptor - the bundle descriptor to be converted.public static Artifact toArtifact(org.mule.maven.client.api.model.BundleDependency bundleDependency)
BundleDependency instance to Artifact.bundleDependency - the bundle dependency to be converted.public static List<Artifact> toArtifacts(Collection<org.mule.maven.client.api.model.BundleDependency> dependencies)
List to a List.dependencies - the bundle dependency list to be converted.public static boolean isValidMulePlugin(Artifact artifact)
Artifact instance represents a mule-plugin.artifact - the artifact to be checked.public static org.mule.maven.client.api.model.BundleDescriptor toBundleDescriptor(ArtifactCoordinates artifactCoordinates)
ArtifactCoordinates instance to a BundleDescriptor instance.artifactCoordinates - the artifact coordinates to be converted.BundleDescriptor instance.public static org.mule.maven.client.api.model.BundleDescriptor toBundleDescriptor(org.apache.maven.model.Dependency dependency)
Dependency instance to a BundleDescriptor instance.BundleDescriptor instance.public static List<Artifact> toApplicationModelArtifacts(List<org.mule.maven.client.api.model.BundleDependency> appDependencies)
public static List<Artifact> updateArtifactsSharedState(List<org.mule.maven.client.api.model.BundleDependency> appDependencies, List<Artifact> artifacts, org.apache.maven.model.Model pomModel)
protected static String getAttribute(org.codehaus.plexus.util.xml.Xpp3Dom tag, String attributeName)
public static void updateScopeIfDomain(Artifact artifact)
public static ArtifactCoordinates getApplicationArtifactCoordinates(org.apache.maven.model.Model pomModel)
public static org.mule.maven.client.api.model.BundleDescriptor getPomProjectBundleDescriptor(org.apache.maven.model.Model pomModel)
public static org.mule.maven.client.api.model.BundleDescriptor getBundleDescriptor(org.apache.maven.model.Model pomModel)
Copyright © 2019 MuleSoft Inc. All rights reserved.