@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME)
public class PackageMojo
extends AbstractMuleMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
attachMuleSources |
protected org.apache.maven.project.MavenProjectHelper |
helper |
protected boolean |
onlyMuleSources |
protected PackagingOptions |
options |
contentGenerator, outputDirectory, projectBuilder, repositorySystem, resourcesContent, skipValidationaetherMavenClient, agentDeployment, armDeployment, classifier, cloudHubDeployment, clusterDeployment, lightweightPackage, localRepository, project, projectBaseFolder, projectBuildDirectory, remoteArtifactRepositories, session, sharedLibraries, standaloneDeployment, strictCheck, testJar, validator| Constructor and Description |
|---|
PackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected PackagingOptions |
buildPackagingOptions() |
void |
doExecute() |
protected File |
getDestinationFile(String targetFolder)
Given a
targetFolder, it returns a new File to the new compressed file where the complete Mule app will be
stored. |
protected String |
getFileName() |
protected PackageBuilder |
getPackageBuilder() |
String |
getPreviousRunPlaceholder() |
execute, getContentGenerator, getResolvergetAetherMavenClient, getClassifier, getDeployments, getPackagingType, getProjectInformation, getProjectValidator, hasExecutedBefore, initMojo, setAgentDeployment, setArmDeployment, setCloudHubDeployment, setClusterDeployment, setProject, setProjectBaseFolder, setSession, setStandaloneDeployment, toArtifactCoordinates@Component protected org.apache.maven.project.MavenProjectHelper helper
@Parameter(defaultValue="${onlyMuleSources}")
protected boolean onlyMuleSources
@Parameter(defaultValue="${attachMuleSources}")
protected boolean attachMuleSources
protected PackagingOptions options
public void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
doExecute in class AbstractGenericMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected File getDestinationFile(String targetFolder) throws org.apache.maven.plugin.MojoExecutionException
targetFolder, it returns a new File to the new compressed file where the complete Mule app will be
stored. If the file already exists, it will delete it and create a new one.targetFolder - starting path in which the destination file will be storedorg.apache.maven.plugin.MojoExecutionException - if it can't delete the previous fileprotected String getFileName()
protected PackageBuilder getPackageBuilder()
protected PackagingOptions buildPackagingOptions()
public String getPreviousRunPlaceholder()
getPreviousRunPlaceholder in class AbstractGenericMojoCopyright © 2018 MuleSoft Inc. All rights reserved.