Class ModuleSet
java.lang.Object
org.apache.maven.plugins.assembly.model.ModuleSet
- All Implemented Interfaces:
- Serializable
A moduleSet represent one or more project <module>
 present inside
         a project's pom.xml. This allows you to include sources
 or binaries
         belonging to a project's <modules>.
 
         
NOTE: When using <moduleSets> from the command-line, it is required to pass first the package phase by doing: "mvn package assembly:assembly". This bug/issue is scheduled to be addressed by Maven 2.1.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddExclude(String string) Method addExclude.voidaddInclude(String string) Method addInclude.Get when this is present, the plugin will include the binaries of the included modules from this set in the resulting assembly.Method getExcludes.Method getIncludes.Get when this is present, the plugin will include the source files of the included modules from this set in the resulting assembly.booleanGet if set to false, the plugin will exclude sub-modules from processing in this ModuleSet.booleanGet if set to true, the plugin will include all projects in the current reactor for processing in this ModuleSet.voidremoveExclude(String string) Method removeExclude.voidremoveInclude(String string) Method removeInclude.voidsetBinaries(ModuleBinaries binaries) Set when this is present, the plugin will include the binaries of the included modules from this set in the resulting assembly.voidsetExcludes(List<String> excludes) Set when <exclude> subelements are present, they define a set of project artifact coordinates to exclude.voidsetIncludes(List<String> includes) Set when <include> subelements are present, they define a set of project coordinates to include.voidsetIncludeSubModules(boolean includeSubModules) Set if set to false, the plugin will exclude sub-modules from processing in this ModuleSet.voidsetSources(ModuleSources sources) Set when this is present, the plugin will include the source files of the included modules from this set in the resulting assembly.voidsetUseAllReactorProjects(boolean useAllReactorProjects) Set if set to true, the plugin will include all projects in the current reactor for processing in this ModuleSet.
- 
Constructor Details- 
ModuleSetpublic ModuleSet()
 
- 
- 
Method Details- 
addExcludeMethod addExclude.- Parameters:
- string- a string object.
 
- 
addIncludeMethod addInclude.- Parameters:
- string- a string object.
 
- 
getBinariesGet when this is present, the plugin will include the binaries of the included modules from this set in the resulting assembly.- Returns:
- ModuleBinaries
 
- 
getExcludesMethod getExcludes.- Returns:
- List
 
- 
getIncludesMethod getIncludes.- Returns:
- List
 
- 
getSourcesGet when this is present, the plugin will include the source files of the included modules from this set in the resulting assembly.- Returns:
- ModuleSources
 
- 
isIncludeSubModulespublic boolean isIncludeSubModules()Get if set to false, the plugin will exclude sub-modules from processing in this ModuleSet. Otherwise, it will process all sub-modules, each subject to include/exclude rules. Default value is true. (Since 2.2).- Returns:
- boolean
 
- 
isUseAllReactorProjectspublic boolean isUseAllReactorProjects()Get if set to true, the plugin will include all projects in the current reactor for processing in this ModuleSet. These will be subject to include/exclude rules. Default value is true. (Since 2.2).- Returns:
- boolean
 
- 
removeExcludeMethod removeExclude.- Parameters:
- string- a string object.
 
- 
removeIncludeMethod removeInclude.- Parameters:
- string- a string object.
 
- 
setBinariesSet when this is present, the plugin will include the binaries of the included modules from this set in the resulting assembly.- Parameters:
- binaries- a binaries object.
 
- 
setExcludesSet when <exclude> subelements are present, they define a set of project 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.
 
- 
setIncludeSubModulespublic void setIncludeSubModules(boolean includeSubModules) Set if set to false, the plugin will exclude sub-modules from processing in this ModuleSet. Otherwise, it will process all sub-modules, each subject to include/exclude rules. Default value is true. (Since 2.2).- Parameters:
- includeSubModules- a includeSubModules object.
 
- 
setIncludesSet when <include> subelements are present, they define a set of project 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.
 
- 
setSourcesSet when this is present, the plugin will include the source files of the included modules from this set in the resulting assembly.- Parameters:
- sources- a sources object.
 
- 
setUseAllReactorProjectspublic void setUseAllReactorProjects(boolean useAllReactorProjects) Set if set to true, the plugin will include all projects in the current reactor for processing in this ModuleSet. These will be subject to include/exclude rules. Default value is true. (Since 2.2).- Parameters:
- useAllReactorProjects- a useAllReactorProjects object.
 
 
-