Package org.apache.maven.project.overlay
Class BuildOverlay
java.lang.Object
org.apache.maven.model.PluginContainer
org.apache.maven.model.PluginConfiguration
org.apache.maven.model.BuildBase
org.apache.maven.model.Build
org.apache.maven.project.overlay.BuildOverlay
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(Extension extension) Method addExtension.voidMethod addFilter.voidMethod addPlugin.voidaddResource(Resource resource) Method addResource.voidaddTestResource(Resource resource) Method addTestResource.booleanvoidReset thepluginsMapfield tonullGet the default goal (or phase in Maven 2) to execute when none is specified for the project.Get the directory where all files generated by the build are placed.Method getExtensions.Method getFilters.Get the filename (excluding the extension, and with no path information) that the produced artifact will be called.Get the directory where compiled application classes are placed.Get default plugin information to be made available for reference by projects derived from this one.Method getPlugins.Method getResources.Get this element specifies a directory containing the script sources of the project.Get this element specifies a directory containing the source of the project.Get the directory where compiled test classes are placed.Method getTestResources.Get this element specifies a directory containing the unit test source of the project.inthashCode()voidremoveExtension(Extension extension) Method removeExtension.voidremoveFilter(String string) Method removeFilter.voidremovePlugin(Plugin plugin) Method removePlugin.voidremoveResource(Resource resource) Method removeResource.voidremoveTestResource(Resource resource) Method removeTestResource.voidsetDefaultGoal(String defaultGoal) Set the default goal (or phase in Maven 2) to execute when none is specified for the project.voidsetDirectory(String directory) Set the directory where all files generated by the build are placed.voidsetExtensions(List extensions) Set a set of build extensions to use from this project.voidsetFilters(List filters) Set the list of filter properties files that are used when filtering is enabled.voidsetFinalName(String finalName) Set the filename (excluding the extension, and with no path information) that the produced artifact will be called.voidsetOutputDirectory(String outputDirectory) Set the directory where compiled application classes are placed.voidsetPluginManagement(PluginManagement pluginManagement) Set default plugin information to be made available for reference by projects derived from this one.voidsetPlugins(List plugins) Set the list of plugins to use.voidsetResources(List resources) Set this element describes all of the classpath resources such as properties files associated with a project.voidsetScriptSourceDirectory(String scriptSourceDirectory) Set this element specifies a directory containing the script sources of the project.voidsetSourceDirectory(String sourceDirectory) Set this element specifies a directory containing the source of the project.voidsetTestOutputDirectory(String testOutputDirectory) Set the directory where compiled test classes are placed.voidsetTestResources(List testResources) Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.voidsetTestSourceDirectory(String testSourceDirectory) Set this element specifies a directory containing the unit test source of the project.toString()
-
Field Details
-
build
-
resources
-
testResources
-
-
Constructor Details
-
BuildOverlay
-
-
Method Details
-
addExtension
Description copied from class:BuildMethod addExtension.- Overrides:
addExtensionin classBuild- Parameters:
extension- a extension object.
-
addPlugin
Description copied from class:PluginContainerMethod addPlugin.- Overrides:
addPluginin classPluginContainer- Parameters:
plugin- a plugin object.
-
addResource
Description copied from class:BuildBaseMethod addResource.- Overrides:
addResourcein classBuildBase- Parameters:
resource- a resource object.
-
addTestResource
Description copied from class:BuildBaseMethod addTestResource.- Overrides:
addTestResourcein classBuildBase- Parameters:
resource- a resource object.
-
equals
-
flushPluginMap
public void flushPluginMap()Description copied from class:PluginContainerReset thepluginsMapfield tonull- Overrides:
flushPluginMapin classPluginContainer
-
getDefaultGoal
Description copied from class:BuildBaseGet the default goal (or phase in Maven 2) to execute when none is specified for the project.- Overrides:
getDefaultGoalin classBuildBase- Returns:
- String
-
getDirectory
Description copied from class:BuildBaseGet the directory where all files generated by the build are placed.- Overrides:
getDirectoryin classBuildBase- Returns:
- String
-
getExtensions
Description copied from class:BuildMethod getExtensions.- Overrides:
getExtensionsin classBuild- Returns:
- List
-
getFinalName
Description copied from class:BuildBaseGet the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}.- Overrides:
getFinalNamein classBuildBase- Returns:
- String
-
getOutputDirectory
Description copied from class:BuildGet the directory where compiled application classes are placed.- Overrides:
getOutputDirectoryin classBuild- Returns:
- String
-
getPluginManagement
Description copied from class:PluginConfigurationGet default plugin information to be made available for reference by projects derived from this one. This plugin configuration will not be resolved or bound to the lifecycle unless referenced. Any local configuration for a given plugin will override the plugin's entire definition here.- Overrides:
getPluginManagementin classPluginConfiguration- Returns:
- PluginManagement
-
getPlugins
Description copied from class:PluginContainerMethod getPlugins.- Overrides:
getPluginsin classPluginContainer- Returns:
- List
-
getPluginsAsMap
- Overrides:
getPluginsAsMapin classPluginContainer- Returns:
- a Map of plugins field with
Plugins#getKey()as key - See Also:
-
getResources
Description copied from class:BuildBaseMethod getResources.- Overrides:
getResourcesin classBuildBase- Returns:
- List
-
getScriptSourceDirectory
Description copied from class:BuildGet this element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled).- Overrides:
getScriptSourceDirectoryin classBuild- Returns:
- String
-
getSourceDirectory
Description copied from class:BuildGet this element specifies a directory containing the source of the project. The generated build system will compile the source in this directory when the project is built. The path given is relative to the project descriptor.- Overrides:
getSourceDirectoryin classBuild- Returns:
- String
-
getTestOutputDirectory
Description copied from class:BuildGet the directory where compiled test classes are placed.- Overrides:
getTestOutputDirectoryin classBuild- Returns:
- String
-
getTestResources
Description copied from class:BuildBaseMethod getTestResources.- Overrides:
getTestResourcesin classBuildBase- Returns:
- List
-
getTestSourceDirectory
Description copied from class:BuildGet this element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor.- Overrides:
getTestSourceDirectoryin classBuild- Returns:
- String
-
hashCode
public int hashCode() -
removeExtension
Description copied from class:BuildMethod removeExtension.- Overrides:
removeExtensionin classBuild- Parameters:
extension- a extension object.
-
removePlugin
Description copied from class:PluginContainerMethod removePlugin.- Overrides:
removePluginin classPluginContainer- Parameters:
plugin- a plugin object.
-
removeResource
Description copied from class:BuildBaseMethod removeResource.- Overrides:
removeResourcein classBuildBase- Parameters:
resource- a resource object.
-
removeTestResource
Description copied from class:BuildBaseMethod removeTestResource.- Overrides:
removeTestResourcein classBuildBase- Parameters:
resource- a resource object.
-
setDefaultGoal
Description copied from class:BuildBaseSet the default goal (or phase in Maven 2) to execute when none is specified for the project.- Overrides:
setDefaultGoalin classBuildBase- Parameters:
defaultGoal- a defaultGoal object.
-
setDirectory
Description copied from class:BuildBaseSet the directory where all files generated by the build are placed.- Overrides:
setDirectoryin classBuildBase- Parameters:
directory- a directory object.
-
setExtensions
Description copied from class:BuildSet a set of build extensions to use from this project.- Overrides:
setExtensionsin classBuild- Parameters:
extensions- a extensions object.
-
setFinalName
Description copied from class:BuildBaseSet the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}.- Overrides:
setFinalNamein classBuildBase- Parameters:
finalName- a finalName object.
-
setOutputDirectory
Description copied from class:BuildSet the directory where compiled application classes are placed.- Overrides:
setOutputDirectoryin classBuild- Parameters:
outputDirectory- a outputDirectory object.
-
setPluginManagement
Description copied from class:PluginConfigurationSet default plugin information to be made available for reference by projects derived from this one. This plugin configuration will not be resolved or bound to the lifecycle unless referenced. Any local configuration for a given plugin will override the plugin's entire definition here.- Overrides:
setPluginManagementin classPluginConfiguration- Parameters:
pluginManagement- a pluginManagement object.
-
setPlugins
Description copied from class:PluginContainerSet the list of plugins to use.- Overrides:
setPluginsin classPluginContainer- Parameters:
plugins- a plugins object.
-
setResources
Description copied from class:BuildBaseSet this element describes all of the classpath resources such as properties files associated with a project. These resources are often included in the final package.- Overrides:
setResourcesin classBuildBase- Parameters:
resources- a resources object.
-
setScriptSourceDirectory
Description copied from class:BuildSet this element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled).- Overrides:
setScriptSourceDirectoryin classBuild- Parameters:
scriptSourceDirectory- a scriptSourceDirectory object.
-
setSourceDirectory
Description copied from class:BuildSet this element specifies a directory containing the source of the project. The generated build system will compile the source in this directory when the project is built. The path given is relative to the project descriptor.- Overrides:
setSourceDirectoryin classBuild- Parameters:
sourceDirectory- a sourceDirectory object.
-
setTestOutputDirectory
Description copied from class:BuildSet the directory where compiled test classes are placed.- Overrides:
setTestOutputDirectoryin classBuild- Parameters:
testOutputDirectory- a testOutputDirectory object.
-
setTestResources
Description copied from class:BuildBaseSet this element describes all of the classpath resources such as properties files associated with a project's unit tests.- Overrides:
setTestResourcesin classBuildBase- Parameters:
testResources- a testResources object.
-
setTestSourceDirectory
Description copied from class:BuildSet this element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor.- Overrides:
setTestSourceDirectoryin classBuild- Parameters:
testSourceDirectory- a testSourceDirectory object.
-
toString
-
addFilter
Description copied from class:BuildBaseMethod addFilter. -
getFilters
Description copied from class:BuildBaseMethod getFilters.- Overrides:
getFiltersin classBuildBase- Returns:
- List
-
removeFilter
Description copied from class:BuildBaseMethod removeFilter.- Overrides:
removeFilterin classBuildBase- Parameters:
string- a string object.
-
setFilters
Description copied from class:BuildBaseSet the list of filter properties files that are used when filtering is enabled.- Overrides:
setFiltersin classBuildBase- Parameters:
filters- a filters object.
-