Package org.apache.maven.model
Class BuildBase
java.lang.Object
org.apache.maven.model.PluginContainer
org.apache.maven.model.PluginConfiguration
org.apache.maven.model.BuildBase
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- Direct Known Subclasses:
Build
Generic informations for a build.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The default goal (or phase in Maven 2) to execute when none is specified for the project.private String
The directory where all files generated by the build are placed.Field filters.private String
The filename (excluding the extension, and with no path information) that the produced artifact will be called.Field resources.Field testResources.Fields inherited from class org.apache.maven.model.PluginContainer
pluginMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addFilter.void
addResource
(Resource resource) Method addResource.void
addTestResource
(Resource resource) Method addTestResource.clone()
Method clone.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 getFilters.Get the filename (excluding the extension, and with no path information) that the produced artifact will be called.Method getResources.Method getTestResources.void
removeFilter
(String string) Method removeFilter.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
setFilters
(List<String> 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
setResources
(List<Resource> resources) Set this element describes all of the classpath resources such as properties files associated with a project.void
setTestResources
(List<Resource> testResources) Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.Methods inherited from class org.apache.maven.model.PluginConfiguration
getPluginManagement, setPluginManagement
Methods inherited from class org.apache.maven.model.PluginContainer
addPlugin, flushPluginMap, getLocation, getPlugins, getPluginsAsMap, removePlugin, setLocation, setOtherLocation, setPlugins
-
Field Details
-
defaultGoal
The default goal (or phase in Maven 2) to execute when none is specified for the project. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace. -
resources
Field resources. -
testResources
Field testResources. -
directory
The directory where all files generated by the build are placed. The default value istarget
. -
finalName
The filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}
. -
filters
Field filters.
-
-
Constructor Details
-
BuildBase
public BuildBase()
-
-
Method Details
-
addFilter
Method addFilter.- Parameters:
string
-
-
addResource
Method addResource.- Parameters:
resource
-
-
addTestResource
Method addTestResource.- Parameters:
resource
-
-
clone
Method clone.- Overrides:
clone
in classPluginConfiguration
- Returns:
- BuildBase
-
getDefaultGoal
Get the default goal (or phase in Maven 2) to execute when none is specified for the project. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace.- Returns:
- String
-
getDirectory
Get the directory where all files generated by the build are placed. The default value istarget
.- Returns:
- String
-
getFilters
Method getFilters.- Returns:
- List
-
getFinalName
Get the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}
.- Returns:
- String
-
getResources
Method getResources.- Returns:
- List
-
getTestResources
Method getTestResources.- Returns:
- List
-
removeFilter
Method removeFilter.- Parameters:
string
-
-
removeResource
Method removeResource.- Parameters:
resource
-
-
removeTestResource
Method removeTestResource.- Parameters:
resource
-
-
setDefaultGoal
Set the default goal (or phase in Maven 2) to execute when none is specified for the project. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace.- Parameters:
defaultGoal
-
-
setDirectory
Set the directory where all files generated by the build are placed. The default value istarget
.- Parameters:
directory
-
-
setFilters
Set the list of filter properties files that are used when filtering is enabled.- Parameters:
filters
-
-
setFinalName
Set the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}
.- Parameters:
finalName
-
-
setResources
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. The default value issrc/main/resources
.- Parameters:
resources
-
-
setTestResources
Set this element describes all of the classpath resources such as properties files associated with a project's unit tests. The default value issrc/test/resources
.- Parameters:
testResources
-
-