component Component When creating several assemblies for a project with a custom assembly descriptor, it can't be helped that you will be duplicating some parts of a defined assembly. These duplicates can be extracted and placed in a separate file called a descriptor component.

Descriptor components contain FileSets, Files, and DependencySets meant to be shared by assembly descriptors by referencing them using <componentDescriptors>. It allows multiple assemblies to share a set of user defined collections.

]]>
package org.apache.maven.plugin.assembly.model Component Describes the component layout and packaging. 1.0.0+ fileSets 1.0.0+ FileSet * files 1.0.0+ FileItem * dependencySets 1.0.0+ DependencySet * repositories 1.1.0 Repository * containerDescriptorHandlers 1.1.0 ContainerDescriptorHandlerConfig * SetBase 1.0.0+ useStrictFiltering 1.1.0 boolean false When specified as true, any include/exclude patterns which aren't used to filter an actual artifact during assembly creation will cause the build to fail with an error. This is meant to highlight obsolete inclusions or exclusions, or else signal that the assembly descriptor is incorrectly configured. useDefaultExcludes 1.1.0 boolean true Whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set. For backward compatibility, the default value is true. outputDirectory 1.0.0+ String Sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory. includes 1.0.0+ String * excludes 1.0.0+ String * fileMode 1.0.0+ String 0644 (more on unix-style permissions) ]]> directoryMode 1.0.0+ String 0755 (more on unix-style permissions) ]]> FileSet 1.0.0+ SetBase A fileSet allows the inclusion of groups of files into the assembly. directory 1.0.0+ String Sets the absolute or relative location from the module's directory. For example, "src/main/bin" would select this subdirectory of the project in which this dependency is defined. true lineEnding 1.0.0+ String
  • "keep" - Preserve all line endings
  • "unix" - Use Unix-style line endings
  • "lf" - Use a single line-feed line endings
  • "dos" - Use DOS-style line endings
  • "crlf" - Use Carraige-return, line-feed line endings
  • ]]>
    filtered 1.1.0 Whether to filter symbols in the files as they are copied, using properties from the build configuration. false boolean
    FileItem 1.0.0+ A file allows individual file inclusion with the option to change the destination filename not supported by fileSets. source 1.0.0+ String true Sets the absolute or relative path from the module's directory of the file to be included in the assembly. outputDirectory 1.0.0+ String false Sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory. destName 1.0.0+ String Sets the destination filename in the outputDirectory. Default is the same name as the source's file. fileMode 1.0.0+ String 0644 (more on unix-style permissions) ]]> lineEnding 1.0.0+ String
  • "keep" - Preserve all line endings
  • "unix" - Use Unix-style line endings
  • "lf" - Use a single line-feed line endings
  • "dos" - Use DOS-style line endings
  • "crlf" - Use Carraige-return, line-feed line endings
  • ]]>
    filtered 1.0.0+ boolean Sets whether to determine if the file is filtered.
    DependencySet 1.0.0+ SetBase A dependencySet allows inclusion and exclusion of project dependencies in the assembly. outputFileNameMapping 1.0.0+ String ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension} Sets the mapping pattern for all dependencies included in this assembly. Default is ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}. If the artifact doesn't have a classifier, that part of the pattern will be left off. (Since 2.2-beta-2; 2.2-beta-1 uses ${artifactId}-${version}${dashClassifier?}.${extension}) unpack boolean false If set to true, this property will unpack all dependencies into the specified output directory. When set to false dependencies will be includes as archives (jars). Default value is false. unpackOptions 1.1.0 Allows the specification of includes and excludes, along with filtering options, for items unpacked from a dependency artifact. UnpackOptions scope 1.0.0+ String runtime true Sets the dependency scope for this dependencySet. Default scope value is "runtime". useProjectArtifact 1.1.0 boolean true useProjectAttachments 1.1.0 boolean false useTransitiveDependencies 1.1.0 boolean true Determines whether transitive dependencies will be included in the processing of the current dependency set. If true, includes/excludes/useTransitiveFiltering will apply to transitive dependency artifacts in addition to the main project dependency artifacts. If false, useTransitiveFiltering is meaningless, and includes/excludes only affect the immediate dependencies of the project. By default, this value is true. (Since 2.2) useTransitiveFiltering 1.1.0 boolean false Determines whether the include/exclude patterns in this dependency set will be applied to the transitive path of a given artifact. If true, and the current artifact is a transitive dependency brought in by another artifact which matches an inclusion or exclusion pattern, then the current artifact has the same inclusion/exclusion logic applied to it as well. By default, this value is false, in order to preserve backward compatibility with version 2.1. This means that includes/excludes only apply directly to the current artifact, and not to the transitive set of artifacts which brought it in. (Since 2.2) Repository 1.1.0 SetBase Defines a Maven repository to be included in the assembly. includeMetadata 1.1.0 boolean false If set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository. groupVersionAlignments 1.1.0 Align a group to a version or an individual artifact. GroupVersionAlignment * scope 1.1.0 String runtime true Specifies the scope for artifacts included in this repository. Default scope value is "runtime". GroupVersionAlignment 1.1.0 Defines a Maven repository to be included in the assembly. id 1.1.0 String The groupId for which you want to align the versions. version 1.1.0 String The version you want to align this group to. excludes 1.1.0 Artifact Ids of the artifacts you want excluded from version alignment. String * UnpackOptions 1.1.0 Specifies options for including/excluding/filtering items extracted from an archive. includes 1.1.0 Set of patterns for matching items to be included from an archive as it is unpacked. String * excludes 1.1.0 Set of patterns for matching items to be excluded from an archive as it is unpacked. String * filtered 1.1.0 Whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration. false boolean ContainerDescriptorHandlerConfig 1.1.0 Configures a filter for files headed into the assembly archive, to enable aggregation of various types of descriptor fragments, such as components.xml, web.xml, etc. handlerName 1.1.0 The handler's plexus role-hint, for lookup from the container. String true