Class ModuleBinaries
java.lang.Object
org.apache.maven.plugins.assembly.model.ModuleBinaries
- All Implemented Interfaces:
- Serializable
Contains configuration options for including the binary
 files of a
         project module in an assembly.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDependencySet(DependencySet dependencySet) Method addDependencySet.voidaddExclude(String string) Method addExclude.voidaddInclude(String string) Method addInclude.Get when specified, the attachmentClassifier will cause the assembler to look at artifacts attached to the module instead of the main project artifact.Method getDependencySets.Get similar to a UNIX permission, sets the directory mode of the directories included.Method getExcludes.Get similar to a UNIX permission, sets the file mode of the files included.Method getIncludes.Get sets the output directory relative to the root of the root directory of the assembly.Get sets the mapping pattern for all NON-UNPACKED dependencies included in this assembly.Get allows the specification of includes and excludes, along with filtering options, for items unpacked from a module artifact.booleanGet if set to true, the plugin will include the direct and transitive dependencies of of the project modules included here.booleanisUnpack()Get if set to true, this property will unpack all module packages into the specified output directory.voidremoveDependencySet(DependencySet dependencySet) Method removeDependencySet.voidremoveExclude(String string) Method removeExclude.voidremoveInclude(String string) Method removeInclude.voidsetAttachmentClassifier(String attachmentClassifier) Set when specified, the attachmentClassifier will cause the assembler to look at artifacts attached to the module instead of the main project artifact.voidsetDependencySets(List<DependencySet> dependencySets) Set specifies which dependencies of the module to include in the assembly.voidsetDirectoryMode(String directoryMode) Set similar to a UNIX permission, sets the directory mode of the directories included.voidsetExcludes(List<String> excludes) Set when <exclude> subelements are present, they define a set of dependency artifact coordinates to exclude.voidsetFileMode(String fileMode) Set similar to a UNIX permission, sets the file mode of the files included.voidsetIncludeDependencies(boolean includeDependencies) Set if set to true, the plugin will include the direct and transitive dependencies of of the project modules included here.voidsetIncludes(List<String> includes) Set when <include> subelements are present, they define a set of artifact coordinates to include.voidsetOutputDirectory(String outputDirectory) Set sets the output directory relative to the root of the root directory of the assembly.voidsetOutputFileNameMapping(String outputFileNameMapping) Set sets the mapping pattern for all NON-UNPACKED dependencies included in this assembly.voidsetUnpack(boolean unpack) Set if set to true, this property will unpack all module packages into the specified output directory.voidsetUnpackOptions(UnpackOptions unpackOptions) Set allows the specification of includes and excludes, along with filtering options, for items unpacked from a module artifact.
- 
Constructor Details- 
ModuleBinariespublic ModuleBinaries()
 
- 
- 
Method Details- 
addDependencySetMethod addDependencySet.- Parameters:
- dependencySet- a dependencySet object.
 
- 
addExcludeMethod addExclude.- Parameters:
- string- a string object.
 
- 
addIncludeMethod addInclude.- Parameters:
- string- a string object.
 
- 
getAttachmentClassifierGet when specified, the attachmentClassifier will cause the assembler to look at artifacts attached to the module instead of the main project artifact. If it can find an attached artifact matching the specified classifier, it will use it; otherwise, it will throw an exception. (Since 2.2).- Returns:
- String
 
- 
getDependencySetsMethod getDependencySets.- Returns:
- List
 
- 
getDirectoryModeGet similar to a UNIX permission, sets the directory mode of the directories included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0755 translates to User read-write, Group and Other read-only. The default value is 0755. (more on unix-style permissions)- Returns:
- String
 
- 
getExcludesMethod getExcludes.- Returns:
- List
 
- 
getFileModeGet similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0644 translates to User read-write, Group and Other read-only. The default value is 0644. (more on unix-style permissions)- Returns:
- String
 
- 
getIncludesMethod getIncludes.- Returns:
- List
 
- 
getOutputDirectoryGet 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, directly beneath the root of the archive.- Returns:
- String
 
- 
getOutputFileNameMappingGet sets the mapping pattern for all NON-UNPACKED dependencies included in this assembly. Default is ${module.artifactId}-${module.version}${dashClassifier?}.${module.extension}. (Since 2.2-beta-2; 2.2-beta-1 uses ${artifactId}-${version}${dashClassifier?}.${extension}) NOTE: If the dependencySet specifies unpack == true, outputFileNameMapping WILL NOT BE USED; in these cases, use outputDirectory. See the plugin FAQ for more details about entries usable in the outputFileNameMapping parameter.- Returns:
- String
 
- 
getUnpackOptionsGet allows the specification of includes and excludes, along with filtering options, for items unpacked from a module artifact. (Since 2.2).- Returns:
- UnpackOptions
 
- 
isIncludeDependenciespublic boolean isIncludeDependencies()Get if set to true, the plugin will include the direct and transitive dependencies of of the project modules included here. Otherwise, it will only include the module packages only. Default value is true.- Returns:
- boolean
 
- 
isUnpackpublic boolean isUnpack()Get if set to true, this property will unpack all module packages into the specified output directory. When set to false module packages will be included as archives (jars). Default value is true.- Returns:
- boolean
 
- 
removeDependencySetMethod removeDependencySet.- Parameters:
- dependencySet- a dependencySet object.
 
- 
removeExcludeMethod removeExclude.- Parameters:
- string- a string object.
 
- 
removeIncludeMethod removeInclude.- Parameters:
- string- a string object.
 
- 
setAttachmentClassifierSet when specified, the attachmentClassifier will cause the assembler to look at artifacts attached to the module instead of the main project artifact. If it can find an attached artifact matching the specified classifier, it will use it; otherwise, it will throw an exception. (Since 2.2).- Parameters:
- attachmentClassifier- a attachmentClassifier object.
 
- 
setDependencySetsSet specifies which dependencies of the module to include in the assembly. A dependencySet is specified by providing one or more of <dependencySet> subelements. (Since 2.2).- Parameters:
- dependencySets- a dependencySets object.
 
- 
setDirectoryModeSet similar to a UNIX permission, sets the directory mode of the directories included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0755 translates to User read-write, Group and Other read-only. The default value is 0755. (more on unix-style permissions)- Parameters:
- directoryMode- a directoryMode object.
 
- 
setExcludesSet when <exclude> subelements are present, they define a set of dependency artifact coordinates to exclude. If none is present, then <excludes> represents no exclusions. Artifact coordinates may be given in simple groupId:artifactId form, or they may be fully qualified in the form groupId:artifactId:type[:classifier]:version. Additionally, wildcards can be used, as in *:maven-*.- Parameters:
- excludes- a excludes object.
 
- 
setFileModeSet similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0644 translates to User read-write, Group and Other read-only. The default value is 0644. (more on unix-style permissions)- Parameters:
- fileMode- a fileMode object.
 
- 
setIncludeDependenciespublic void setIncludeDependencies(boolean includeDependencies) Set if set to true, the plugin will include the direct and transitive dependencies of of the project modules included here. Otherwise, it will only include the module packages only. Default value is true.- Parameters:
- includeDependencies- a includeDependencies object.
 
- 
setIncludesSet when <include> subelements are present, they define a set of artifact coordinates to include. If none is present, then <includes> represents all valid values. Artifact coordinates may be given in simple groupId:artifactId form, or they may be fully qualified in the form groupId:artifactId:type[:classifier]:version. Additionally, wildcards can be used, as in *:maven-*.- Parameters:
- includes- a includes object.
 
- 
setOutputDirectorySet 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, directly beneath the root of the archive.- Parameters:
- outputDirectory- a outputDirectory object.
 
- 
setOutputFileNameMappingSet sets the mapping pattern for all NON-UNPACKED dependencies included in this assembly. Default is ${module.artifactId}-${module.version}${dashClassifier?}.${module.extension}. (Since 2.2-beta-2; 2.2-beta-1 uses ${artifactId}-${version}${dashClassifier?}.${extension}) NOTE: If the dependencySet specifies unpack == true, outputFileNameMapping WILL NOT BE USED; in these cases, use outputDirectory. See the plugin FAQ for more details about entries usable in the outputFileNameMapping parameter.- Parameters:
- outputFileNameMapping- a outputFileNameMapping object.
 
- 
setUnpackpublic void setUnpack(boolean unpack) Set if set to true, this property will unpack all module packages into the specified output directory. When set to false module packages will be included as archives (jars). Default value is true.- Parameters:
- unpack- a unpack object.
 
- 
setUnpackOptionsSet allows the specification of includes and excludes, along with filtering options, for items unpacked from a module artifact. (Since 2.2).- Parameters:
- unpackOptions- a unpackOptions object.
 
 
-