@Mojo(name="package",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME)
public class PackageMojo
extends AbstractMuleMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
attachMuleSources |
protected String |
finalName |
protected org.apache.maven.project.MavenProjectHelper |
helper |
protected boolean |
onlyMuleSources |
protected PackageBuilder |
packageBuilder |
protected PackagingType |
packagingType |
classifier, lightweightPackage, localRepository, mainFolder, munitSourceFolder, outputDirectory, project, projectBaseFolder, projectBuilder, remoteArtifactRepositories, repositorySystem, session, sharedLibraries, skipValidation| Constructor and Description |
|---|
PackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createMuleApp(File destinationFile,
String targetFolder) |
void |
execute() |
protected String |
getFinalName() |
protected void |
initializePackageBuilder() |
createFileIfNecessary, createFolderIfNecessary, getMuleAppZipFile, getSourceFolder@Component protected org.apache.maven.project.MavenProjectHelper helper
@Parameter(defaultValue="${finalName}")
protected String finalName
@Parameter(defaultValue="${onlyMuleSources}")
protected boolean onlyMuleSources
@Parameter(defaultValue="${attachMuleSources}")
protected boolean attachMuleSources
protected PackageBuilder packageBuilder
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 String getFinalName()
protected void createMuleApp(File destinationFile, String targetFolder) throws org.apache.maven.plugin.MojoExecutionException, org.codehaus.plexus.archiver.ArchiverException
org.apache.maven.plugin.MojoExecutionExceptionorg.codehaus.plexus.archiver.ArchiverExceptionprotected void initializePackageBuilder()
Copyright © 2017 MuleSoft Inc. All rights reserved.