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
Build configuration in a profile.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidMethod addFilter.voidaddResource(Resource resource) Method addResource.voidaddTestResource(Resource resource) Method addTestResource.clone()Method clone.Get the default goal 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.voidremoveFilter(String string) Method removeFilter.voidremoveResource(Resource resource) Method removeResource.voidremoveTestResource(Resource resource) Method removeTestResource.voidsetDefaultGoal(String defaultGoal) Set the default goal to execute when none is specified for the project.voidsetDirectory(String directory) Set the directory where all files generated by the build are placed.voidsetFilters(List<String> 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.voidsetResources(List<Resource> resources) Set this element describes all of the classpath resources such as properties files associated with a project.voidsetTestResources(List<Resource> testResources) Set this element describes all of the classpath resources such as properties files associated with a project's unit tests.toString()Methods inherited from class org.apache.maven.model.PluginConfigurationgetPluginManagement, setPluginManagementMethods inherited from class org.apache.maven.model.PluginContaineraddPlugin, flushPluginMap, getLocation, getPlugins, getPluginsAsMap, removePlugin, setLocation, setOtherLocation, setPlugins
- 
Constructor Details- 
BuildBasepublic BuildBase()
 
- 
- 
Method Details- 
addFilterMethod addFilter.- Parameters:
- string- a string object.
 
- 
addResourceMethod addResource.- Parameters:
- resource- a resource object.
 
- 
addTestResourceMethod addTestResource.- Parameters:
- resource- a resource object.
 
- 
cloneMethod clone.- Overrides:
- clonein class- PluginConfiguration
- Returns:
- BuildBase
 
- 
getDefaultGoalGet the default goal to execute when none is specified for the project. In a multi-module build, only the default goal of the top-level project is relevant. That is, the default goals of child modules are ignored. Multiple goals can be separated by whitespace.- Returns:
- String
 
- 
getDirectoryGet the directory where all files generated by the build are placed. The default value istarget.- Returns:
- String
 
- 
getFiltersMethod getFilters.- Returns:
- List
 
- 
getFinalNameGet 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
 
- 
getResourcesMethod getResources.- Returns:
- List
 
- 
getTestResourcesMethod getTestResources.- Returns:
- List
 
- 
removeFilterMethod removeFilter.- Parameters:
- string- a string object.
 
- 
removeResourceMethod removeResource.- Parameters:
- resource- a resource object.
 
- 
removeTestResourceMethod removeTestResource.- Parameters:
- resource- a resource object.
 
- 
setDefaultGoalSet the default goal to execute when none is specified for the project. In a multi-module build, only the default goal of the top-level project is relevant. That is, the default goals of child modules are ignored. Multiple goals can be separated by whitespace.- Parameters:
- defaultGoal- a defaultGoal object.
 
- 
setDirectorySet the directory where all files generated by the build are placed. The default value istarget.- Parameters:
- directory- a directory object.
 
- 
setFiltersSet the list of filter properties files that are used when filtering is enabled.- Parameters:
- filters- a filters object.
 
- 
setFinalNameSet 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- a finalName object.
 
- 
setResourcesSet 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- a resources object.
 
- 
setTestResourcesSet 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- a testResources object.
 
- 
toString- Overrides:
- toStringin class- PluginConfiguration
- See Also:
 
 
-