public class MavenTestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
findMavenArtifact(org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor descriptor)
Obtains the file corresponding to a given Maven artifact on the local repo
|
static org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor |
getApplicationBundleDescriptor(String appName,
Optional<String> classifier) |
static org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor |
getDomainBundleDescriptor(String appName) |
static File |
installMavenArtifact(String baseDirectory,
org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor descriptor)
Runs the Maven install goal using the project on the given directory for the artifact defined by the given descriptor.
|
public static File installMavenArtifact(String baseDirectory, org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor descriptor)
baseDirectory - directory on which the POM resides.descriptor - the artifact descriptor for the project being built.public static File findMavenArtifact(org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor descriptor)
descriptor - describes which artifact must be returned.IllegalArgumentException - if the file does not exists in the local Maven repositorypublic static org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor getApplicationBundleDescriptor(String appName, Optional<String> classifier)
public static org.mule.runtime.module.artifact.api.descriptor.BundleDescriptor getDomainBundleDescriptor(String appName)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.