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 parametersdescriptors
,descriptorRefs
, anddescriptorSourceDirectory
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
-
-
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()
-
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, getJarArchiveConfiguration, getLocalRepository, getMainProjectInterpolator, getMavenReaderFilter, getMavenSession, getMergeManifestMode, getOutputDirectory, getOverrideGid, getOverrideGroupName, getOverrideUid, getOverrideUserName, getReactorProjects, getRemoteRepositories, getRepositoryInterpolator, getSiteDirectory, getTarLongFileMode, getTemporaryRootDirectory, getWorkingDirectory, isAssemblyIdAppended, isDryRun, isIgnoreDirFormatExtensions, isIgnoreMissingDescriptor, isIgnorePermissions, isIncludeProjectBuildFilters, 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
-
getProject
public org.apache.maven.project.MavenProject getProject()
- Specified by:
getProject
in interfaceAssemblerConfigurationSource
- Specified by:
getProject
in classAbstractAssemblyMojo
- Returns:
- The Maven Project.
-
-