assembly:directory-inline

Assemble an application bundle or distribution from an assembly descriptor into the target directory structure but do not generate the final archive. This goal is suitable for using at the root of a multimodule project, and is the unarchived counterpart to assembly:attached.

Mojo Attributes :

  • Requires a Maven 2.0 project to execute.
  • Executes as an aggregator plugin.

Required Parameters

Name Type Description
finalName String The filename of the assembled distribution file. Default value is ${project.build.finalName}.
outputDirectory File The output directory of the assembled distribution file. Default value is ${project.build.directory}.
workDirectory File Directory to unpack JARs into if needed Default value is ${project.build.directory}/assembly/work.

Optional Parameters

Name Type Description
appendAssemblyId boolean Set to false to exclude the assembly id from the assembly final name. Default value is true.
archive MavenArchiveConfiguration This is a set of instructions to the archive builder, especially for building .jar files. It enables you to specify a Manifest file for the jar, in addition to other options.
archiveBaseDirectory File This is the base directory from which archive files are created. This base directory pre-pended to any <directory> specifications in the assembly descriptor. This is an optional parameter.
assemblyArchiver AssemblyArchiver No description.
assemblyReader AssemblyReader No description.
attach boolean Controls whether the assembly plugin tries to attach the resulting assembly to the project. Default value is true.
classifier String This is the artifact classifier to be used for the resultant assembly artifact. Normally, you would use the assembly-id instead of specifying this here.
descriptor String Assembly XML Descriptor file. This must be the path to your customized descriptor file.
descriptorId String Predefined Assembly Descriptor Id's. You can select bin, jar-with-dependencies, or src.
descriptorRefs String[] A list of built-in descriptor references to generate from. You can select from bin, jar-with-dependencies, or src.
descriptorSourceDirectory File Directory to scan for descriptor files in.
descriptors String[] A list of descriptor files to generate from.
dryRun boolean If this flag is set, everything up to the call to Archiver.createArchive() will be executed. Default value is false.
filters List No description.
ignoreDirFormatExtensions boolean If this flag is set, the ".dir" suffix will be suppressed in the output directory name when using assembly/format == 'dir' and other formats that begin with 'dir'. Default value is false.
ignoreMissingDescriptor boolean Set to true in order to not fail when a descriptor is missing. Default value is false.
includeSite boolean Set to true to include the site generated by site:site goal. Default value is false.
projectHelper MavenProjectHelper Maven ProjectHelper.
skipAssembly boolean Flag allowing one or more executions of the assembly plugin to be configured as skipped for a particular build. This makes the assembly plugin more controllable from profiles. Default value is false.
tarLongFileMode String Sets the TarArchiver behavior on file paths with more than 100 characters length. Valid values are: "warn" (default), "fail", "truncate", "gnu", or "omit". Default value is warn.

Parameter Details

appendAssemblyId

Set to false to exclude the assembly id from the assembly final name.

  • Type : boolean
  • Required : No
  • Expression : ${appendAssemblyId}
  • Default : true

archive

This is a set of instructions to the archive builder, especially for building .jar files. It enables you to specify a Manifest file for the jar, in addition to other options.

  • Type : org.apache.maven.archiver.MavenArchiveConfiguration
  • Required : No

archiveBaseDirectory

This is the base directory from which archive files are created. This base directory pre-pended to any <directory> specifications in the assembly descriptor. This is an optional parameter.

  • Type : java.io.File
  • Required : No

assemblyArchiver

No Description.

  • Type : org.apache.maven.plugin.assembly.archive.AssemblyArchiver
  • Required : No

assemblyReader

No Description.

  • Type : org.apache.maven.plugin.assembly.io.AssemblyReader
  • Required : No

attach

Controls whether the assembly plugin tries to attach the resulting assembly to the project.

  • Type : boolean
  • Since : 2.2-beta-1
  • Required : No
  • Expression : ${attach}
  • Default : true

classifier

This is the artifact classifier to be used for the resultant assembly artifact. Normally, you would use the assembly-id instead of specifying this here.

  • Type : java.lang.String
  • Required : No
  • Expression : ${classifier}

descriptor

Assembly XML Descriptor file. This must be the path to your customized descriptor file.

  • Type : java.lang.String
  • Required : No
  • Expression : ${descriptor}

descriptorId

Predefined Assembly Descriptor Id's. You can select bin, jar-with-dependencies, or src.

  • Type : java.lang.String
  • Required : No
  • Expression : ${descriptorId}

descriptorRefs

A list of built-in descriptor references to generate from. You can select from bin, jar-with-dependencies, or src.

  • Type : java.lang.String[]
  • Required : No

descriptorSourceDirectory

Directory to scan for descriptor files in.

  • Type : java.io.File
  • Required : No

descriptors

A list of descriptor files to generate from.

  • Type : java.lang.String[]
  • Required : No

dryRun

If this flag is set, everything up to the call to Archiver.createArchive() will be executed.

  • Type : boolean
  • Required : No
  • Expression : ${assembly.dryRun}
  • Default : false

filters

No Description.

  • Type : java.util.List
  • Required : No

finalName

The filename of the assembled distribution file.

  • Type : java.lang.String
  • Required : Yes
  • Default : ${project.build.finalName}

ignoreDirFormatExtensions

If this flag is set, the ".dir" suffix will be suppressed in the output directory name when using assembly/format == 'dir' and other formats that begin with 'dir'.

  • Type : boolean
  • Required : No
  • Default : false

ignoreMissingDescriptor

Set to true in order to not fail when a descriptor is missing.

  • Type : boolean
  • Required : No
  • Expression : ${ignoreMissingDescriptor}
  • Default : false

includeSite

Set to true to include the site generated by site:site goal.

  • Type : boolean
  • Required : No
  • Expression : ${includeSite}
  • Default : false

outputDirectory

The output directory of the assembled distribution file.

  • Type : java.io.File
  • Required : Yes
  • Default : ${project.build.directory}

projectHelper

Maven ProjectHelper.

  • Type : org.apache.maven.project.MavenProjectHelper
  • Required : No

skipAssembly

Flag allowing one or more executions of the assembly plugin to be configured as skipped for a particular build. This makes the assembly plugin more controllable from profiles.

  • Type : boolean
  • Required : No
  • Default : false

tarLongFileMode

Sets the TarArchiver behavior on file paths with more than 100 characters length. Valid values are: "warn" (default), "fail", "truncate", "gnu", or "omit".

  • Type : java.lang.String
  • Required : No
  • Expression : ${tarLongFileMode}
  • Default : warn

workDirectory

Directory to unpack JARs into if needed

  • Type : java.io.File
  • Required : Yes
  • Default : ${project.build.directory}/assembly/work