@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 PackagingType |
packagingType |
classifier, contentGenerator, lightweightPackage, localRepository, outputDirectory, project, projectBaseFolder, projectBuilder, remoteArtifactRepositories, repositorySystem, session, sharedLibraries, skipValidation| Constructor and Description |
|---|
PackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
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() |
PackageBuilder |
getPackageBuilder() |
getContentGenerator@Component protected org.apache.maven.project.MavenProjectHelper helper
@Parameter(defaultValue="${onlyMuleSources}")
protected boolean onlyMuleSources
@Parameter(defaultValue="${attachMuleSources}")
protected boolean attachMuleSources
protected PackagingType packagingType
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected 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()
public PackageBuilder getPackageBuilder()
Copyright © 2017 MuleSoft Inc. All rights reserved.