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", inheritByDefault=false, 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 parametersdescriptors
,descriptorRefs
, anddescriptorSourceDirectory
are disjoint, i.e., they are not combined during descriptor location calculation.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.plugin.descriptor.PluginDescriptor
plugin
private org.apache.maven.project.MavenProject
project
-
Fields inherited from class org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo
appendAssemblyId, commandLinePropertiesInterpolator, envInterpolator, mainProjectInterpolator, rootInterpolator
-
-
Constructor Summary
Constructors Constructor Description SingleAssemblyMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Create the binary distribution.org.apache.maven.project.MavenProject
getProject()
private void
verifyRemovedParameter(java.lang.String paramName)
-
Methods inherited from class org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo
getArchiveBaseDirectory, getArchiverConfig, getBasedir, getCommandLinePropsInterpolator, getDelimiters, getDescriptorReferences, getDescriptors, getDescriptorSourceDirectory, getEncoding, getEnvInterpolator, getEscapeString, getFilters, getFinalName, getJarArchiveConfiguration, getLocalRepository, getMainProjectInterpolator, getMavenReaderFilter, getMavenSession, getMergeManifestMode, getOutputDirectory, getReactorProjects, getRemoteRepositories, getRepositoryInterpolator, getSiteDirectory, getTarLongFileMode, getTemporaryRootDirectory, getWorkingDirectory, isAssemblyIdAppended, isDryRun, isIgnoreDirFormatExtensions, isIgnoreMissingDescriptor, isIgnorePermissions, isIncludeProjectBuildFilters, isRecompressZippedFiles, isThisTheExecutionRoot, isUpdateOnly, isUseJvmChmod, mainProjectInterpolator, setAppendAssemblyId, setArchive, setBasedir, setDelimiters, setDescriptorRefs, setDescriptors, setFilters, setFinalName, setLocalRepository, setOutputDirectory, setReactorProjects, setSiteDirectory, setTarLongFileMode, setTempRoot, setWorkDirectory
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Description 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
-
verifyRemovedParameter
private void verifyRemovedParameter(java.lang.String paramName)
-
getProject
public org.apache.maven.project.MavenProject getProject()
- Specified by:
getProject
in interfaceAssemblerConfigurationSource
- Specified by:
getProject
in classAbstractAssemblyMojo
- Returns:
- The Maven Project.
-
-