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 TypeMethodDescriptionvoid
addExtension
(Extension extension) Method addExtension.void
Method addFilter.void
Method addPlugin.void
addResource
(Resource resource) Method addResource.void
addTestResource
(Resource resource) Method addTestResource.boolean
void
Reset thepluginsMap
field tonull
Get 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.int
hashCode()
void
removeExtension
(Extension extension) Method removeExtension.void
removeFilter
(String string) Method removeFilter.void
removePlugin
(Plugin plugin) Method removePlugin.void
removeResource
(Resource resource) Method removeResource.void
removeTestResource
(Resource resource) Method removeTestResource.void
setDefaultGoal
(String defaultGoal) Set the default goal (or phase in Maven 2) to execute when none is specified for the project.void
setDirectory
(String directory) Set the directory where all files generated by the build are placed.void
setExtensions
(List extensions) Set a set of build extensions to use from this project.void
setFilters
(List filters) Set the list of filter properties files that are used when filtering is enabled.void
setFinalName
(String finalName) Set the filename (excluding the extension, and with no path information) that the produced artifact will be called.void
setOutputDirectory
(String outputDirectory) Set the directory where compiled application classes are placed.void
setPluginManagement
(PluginManagement pluginManagement) Set default plugin information to be made available for reference by projects derived from this one.void
setPlugins
(List plugins) Set the list of plugins to use.void
setResources
(List resources) Set this element describes all of the classpath resources such as properties files associated with a project.void
setScriptSourceDirectory
(String scriptSourceDirectory) Set this element specifies a directory containing the script sources of the project.void
setSourceDirectory
(String sourceDirectory) Set this element specifies a directory containing the source of the project.void
setTestOutputDirectory
(String testOutputDirectory) Set the directory where compiled test classes are placed.void
setTestResources
(List testResources) Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.void
setTestSourceDirectory
(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:Build
Method addExtension.- Overrides:
addExtension
in classBuild
-
addPlugin
Description copied from class:PluginContainer
Method addPlugin.- Overrides:
addPlugin
in classPluginContainer
-
addResource
Description copied from class:BuildBase
Method addResource.- Overrides:
addResource
in classBuildBase
-
addTestResource
Description copied from class:BuildBase
Method addTestResource.- Overrides:
addTestResource
in classBuildBase
-
equals
-
flushPluginMap
public void flushPluginMap()Description copied from class:PluginContainer
Reset thepluginsMap
field tonull
- Overrides:
flushPluginMap
in classPluginContainer
-
getDefaultGoal
Description copied from class:BuildBase
Get the default goal (or phase in Maven 2) to execute when none is specified for the project.- Overrides:
getDefaultGoal
in classBuildBase
- Returns:
- String
-
getDirectory
Description copied from class:BuildBase
Get the directory where all files generated by the build are placed.- Overrides:
getDirectory
in classBuildBase
- Returns:
- String
-
getExtensions
Description copied from class:Build
Method getExtensions.- Overrides:
getExtensions
in classBuild
- Returns:
- List
-
getFinalName
Description copied from class:BuildBase
Get the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}
.- Overrides:
getFinalName
in classBuildBase
- Returns:
- String
-
getOutputDirectory
Description copied from class:Build
Get the directory where compiled application classes are placed.- Overrides:
getOutputDirectory
in classBuild
- Returns:
- String
-
getPluginManagement
Description copied from class:PluginConfiguration
Get 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:
getPluginManagement
in classPluginConfiguration
- Returns:
- PluginManagement
-
getPlugins
Description copied from class:PluginContainer
Method getPlugins.- Overrides:
getPlugins
in classPluginContainer
- Returns:
- List
-
getPluginsAsMap
- Overrides:
getPluginsAsMap
in classPluginContainer
- Returns:
- a Map of plugins field with
Plugins#getKey()
as key - See Also:
-
getResources
Description copied from class:BuildBase
Method getResources.- Overrides:
getResources
in classBuildBase
- Returns:
- List
-
getScriptSourceDirectory
Description copied from class:Build
Get 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:
getScriptSourceDirectory
in classBuild
- Returns:
- String
-
getSourceDirectory
Description copied from class:Build
Get 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:
getSourceDirectory
in classBuild
- Returns:
- String
-
getTestOutputDirectory
Description copied from class:Build
Get the directory where compiled test classes are placed.- Overrides:
getTestOutputDirectory
in classBuild
- Returns:
- String
-
getTestResources
Description copied from class:BuildBase
Method getTestResources.- Overrides:
getTestResources
in classBuildBase
- Returns:
- List
-
getTestSourceDirectory
Description copied from class:Build
Get 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:
getTestSourceDirectory
in classBuild
- Returns:
- String
-
hashCode
public int hashCode() -
removeExtension
Description copied from class:Build
Method removeExtension.- Overrides:
removeExtension
in classBuild
-
removePlugin
Description copied from class:PluginContainer
Method removePlugin.- Overrides:
removePlugin
in classPluginContainer
-
removeResource
Description copied from class:BuildBase
Method removeResource.- Overrides:
removeResource
in classBuildBase
-
removeTestResource
Description copied from class:BuildBase
Method removeTestResource.- Overrides:
removeTestResource
in classBuildBase
-
setDefaultGoal
Description copied from class:BuildBase
Set the default goal (or phase in Maven 2) to execute when none is specified for the project.- Overrides:
setDefaultGoal
in classBuildBase
-
setDirectory
Description copied from class:BuildBase
Set the directory where all files generated by the build are placed.- Overrides:
setDirectory
in classBuildBase
-
setExtensions
Description copied from class:Build
Set a set of build extensions to use from this project.- Overrides:
setExtensions
in classBuild
-
setFinalName
Description copied from class:BuildBase
Set the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}
.- Overrides:
setFinalName
in classBuildBase
-
setOutputDirectory
Description copied from class:Build
Set the directory where compiled application classes are placed.- Overrides:
setOutputDirectory
in classBuild
-
setPluginManagement
Description copied from class:PluginConfiguration
Set 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:
setPluginManagement
in classPluginConfiguration
-
setPlugins
Description copied from class:PluginContainer
Set the list of plugins to use.- Overrides:
setPlugins
in classPluginContainer
-
setResources
Description copied from class:BuildBase
Set 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:
setResources
in classBuildBase
-
setScriptSourceDirectory
Description copied from class:Build
Set 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:
setScriptSourceDirectory
in classBuild
-
setSourceDirectory
Description copied from class:Build
Set 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:
setSourceDirectory
in classBuild
-
setTestOutputDirectory
Description copied from class:Build
Set the directory where compiled test classes are placed.- Overrides:
setTestOutputDirectory
in classBuild
-
setTestResources
Description copied from class:BuildBase
Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.- Overrides:
setTestResources
in classBuildBase
-
setTestSourceDirectory
Description copied from class:Build
Set 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:
setTestSourceDirectory
in classBuild
-
toString
-
addFilter
Description copied from class:BuildBase
Method addFilter. -
getFilters
Description copied from class:BuildBase
Method getFilters.- Overrides:
getFilters
in classBuildBase
- Returns:
- List
-
removeFilter
Description copied from class:BuildBase
Method removeFilter.- Overrides:
removeFilter
in classBuildBase
-
setFilters
Description copied from class:BuildBase
Set the list of filter properties files that are used when filtering is enabled.- Overrides:
setFilters
in classBuildBase
-