org.apache.maven.plugin.assembly.mojos
Class DirectoryMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo
org.apache.maven.plugin.assembly.mojos.AbstractDirectoryMojo
org.apache.maven.plugin.assembly.mojos.DirectoryMojo
- All Implemented Interfaces:
- AssemblerConfigurationSource, ContextEnabled, Mojo
Deprecated. Use assembly:single and an assembly with format == dir instead! This mojo is redundant.
@Mojo(name="directory",
aggregator=true,
inheritByDefault=false)
@Execute(phase=PACKAGE)
@Deprecated
public class DirectoryMojo- extends AbstractDirectoryMojo
Like the assembly:attached goal, assemble an application bundle or distribution using an assembly
descriptor from the command line. This goal will force Maven to build all included POMs up to the
package phase BEFORE the assembly is processed. This goal differs from assembly:assembly in
that it ignores the <formats/> section of the assembly descriptor, and forces the assembly to be created as a
directory in the project's build-output directory (usually ./target).
This goal is also functionally equivalent to using the assembly:assembly goal in conjunction with the
dir assembly format.
NOTE: This goal should ONLY be run from the command line, and if building a multimodule project it should be
used from the root POM. Use the assembly:directory-single goal for binding your assembly to the
lifecycle.
- Version:
- $Id: DirectoryMojo.java 1618908 2014-08-19 17:27:43Z khmarbaise $
- Author:
- John Casey
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo |
getArchiveBaseDirectory, getArchiverConfig, getBasedir, getClassifier, getCommandLinePropsInterpolator, getDelimiters, getDescriptor, getDescriptorId, getDescriptorReferences, getDescriptors, getDescriptorSourceDirectory, getEncoding, getEnvInterpolator, getEscapeString, getFilters, getFinalName, getJarArchiveConfiguration, getLocalRepository, getMainProjectInterpolator, getMavenReaderFilter, getMavenSession, getOutputDirectory, getProjectHelper, getReactorProjects, getRemoteRepositories, getRepositoryInterpolator, getSiteDirectory, getTarLongFileMode, getTemporaryRootDirectory, getWorkingDirectory, isAssemblyIdAppended, isDryRun, isIgnoreDirFormatExtensions, isIgnoreMissingDescriptor, isIgnorePermissions, isIncludeProjectBuildFilters, isSiteIncluded, isUpdateOnly, isUseJvmChmod, mainProjectInterpolator, setAppendAssemblyId, setArchive, setBasedir, setClassifier, setDelimiters, setDescriptor, setDescriptorId, setDescriptorRefs, setDescriptors, setDescriptorSourceDirectory, setFilters, setFinalName, setIgnoreMissingDescriptor, setIncludeSite, setLocalRepository, setOutputDirectory, setProjectHelper, setReactorProjects, setSiteDirectory, setTarLongFileMode, setTempRoot, setWorkDirectory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryMojo
public DirectoryMojo()
- Deprecated.
getProject
public MavenProject getProject()
- Deprecated.
- Specified by:
getProject in interface AssemblerConfigurationSource- Specified by:
getProject in class AbstractAssemblyMojo
- Returns:
- The Maven Project.
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.