Class SingleAssemblyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo
org.apache.maven.plugins.assembly.mojos.SingleAssemblyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,AssemblerConfigurationSource
@Mojo(name="single",
requiresDependencyResolution=TEST,
threadSafe=true)
public class SingleAssemblyMojo
extends AbstractAssemblyMojo
Assemble an application bundle or distribution from an assembly descriptor. This goal is suitable either for binding
to the lifecycle or calling directly from the command line (provided all required files are available before the
build starts, or are produced by another goal specified before this one on the command line).
Note that the parameters
Note that the parameters
descriptors
, descriptorRefs
, and descriptorSourceDirectory
are disjoint, i.e., they are not combined during descriptor location calculation.- Author:
- John Casey, Brett Porter
-
Field Summary
Fields inherited from class org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo
commandLinePropertiesInterpolator, envInterpolator, mainProjectInterpolator, rootInterpolator
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Create the binary distribution.org.apache.maven.project.MavenProject
Methods inherited from class org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo
getAdditionalProperties, getArchiveBaseDirectory, getArchiverConfig, getBasedir, getCommandLinePropsInterpolator, getDelimiters, getDescriptorReferences, getDescriptors, getDescriptorSourceDirectory, getEncoding, getEnvInterpolator, getEscapeString, getFilters, getFinalName, getInlineDescriptors, getJarArchiveConfiguration, getMainProjectInterpolator, getMavenReaderFilter, getMavenSession, getMergeManifestMode, getOutputDirectory, getOverrideGid, getOverrideGroupName, getOverrideUid, getOverrideUserName, getReactorProjects, getRepositoryInterpolator, getSiteDirectory, getTarLongFileMode, getTemporaryRootDirectory, getWorkingDirectory, isAssemblyIdAppended, isDryRun, isIgnoreDirFormatExtensions, isIgnoreMissingDescriptor, isIgnorePermissions, isIncludeProjectBuildFilters, isRecompressZippedFiles, isUpdateOnly, mainProjectInterpolator, setAppendAssemblyId, setArchive, setBasedir, setDelimiters, setDescriptorRefs, setDescriptors, setFilters, setFinalName, setOutputDirectory, setReactorProjects, setSiteDirectory, setTarLongFileMode, setTempRoot, setWorkDirectory
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
SingleAssemblyMojo
public SingleAssemblyMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractAssemblyMojo
Create the binary distribution.- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classAbstractAssemblyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getProject
public org.apache.maven.project.MavenProject getProject()- Returns:
- The Maven Project.
-