@Mojo(name="repository-mirror",
defaultPhase=VERIFY,
requiresDependencyResolution=RUNTIME)
public class RepositoryMirrorMojo
extends AbstractMuleMojo
AbstractMuleMojo.project we will clone the current Maven repository needed to execute the plugin into the
AbstractMuleMojo.outputDirectory/REPOSITORY_FOLDER folder.
This Mojo not only takes care of the JAR files, but also copies the POMs, respecting the
repository structure.
Notice that this class will not copy the current POM file into the repository structure, as it will be part of the
AbstractPackagePluginMojo.addPOMFile(ModuleArchiver) method| Modifier and Type | Field and Description |
|---|---|
static String |
REPOSITORY_FOLDER |
appDirectory, finalName, outputDirectory, project| Constructor and Description |
|---|
RepositoryMirrorMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
getMuleArtifactFilepublic static final String REPOSITORY_FOLDER
Copyright © 2017 MuleSoft, Inc.. All rights reserved.