Package org.apache.maven.api.model
Class BuildBase
java.lang.Object
org.apache.maven.api.model.PluginContainer
org.apache.maven.api.model.PluginConfiguration
org.apache.maven.api.model.BuildBase
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
- Direct Known Subclasses:
- Build
@Experimental
@Generated
@ThreadSafe
@Immutable
public class BuildBase
extends PluginConfiguration
implements Serializable, InputLocationTracker
Build configuration in a profile.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create BuildBase instances.
- 
Method SummaryModifier and TypeMethodDescriptionThe default goal (or phase in Maven 2) to execute when none is specified for the project.The directory where all files generated by the build are placed.The list of filter properties files that are used when filtering is enabled.The filename (excluding the extension, and with no path information) that the produced artifact will be called.getLocation(Object key) Gets the location of the specified field in the input source.This element describes all of the classpath resources such as properties files associated with a project.This element describes all of the classpath resources such as properties files associated with a project's unit tests.static BuildBase.BuilderCreates a newBuildBasebuilder instance.static BuildBase.BuildernewBuilder(boolean withDefaults) Creates a newBuildBasebuilder instance using default values or not.static BuildBase.BuildernewBuilder(BuildBase from) Creates a newBuildBasebuilder instance using the specified object as a basis.static BuildBase.BuildernewBuilder(BuildBase from, boolean forceCopy) Creates a newBuildBasebuilder instance using the specified object as a basis.static BuildBaseCreates a newBuildBaseinstance.static BuildBasenewInstance(boolean withDefaults) Creates a newBuildBaseinstance using default values or not.with()Creates a new builder with this object as the basis.withDefaultGoal(String defaultGoal) Creates a newBuildBaseinstance using the specified defaultGoal.withDirectory(String directory) Creates a newBuildBaseinstance using the specified directory.withFilters(Collection<String> filters) Creates a newBuildBaseinstance using the specified filters.withFinalName(String finalName) Creates a newBuildBaseinstance using the specified finalName.withPluginManagement(PluginManagement pluginManagement) Creates a newBuildBaseinstance using the specified pluginManagement.withPlugins(Collection<Plugin> plugins) Creates a newBuildBaseinstance using the specified plugins.withResources(Collection<Resource> resources) Creates a newBuildBaseinstance using the specified resources.withTestResources(Collection<Resource> testResources) Creates a newBuildBaseinstance using the specified testResources.Methods inherited from class org.apache.maven.api.model.PluginConfigurationgetPluginManagement, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.model.PluginContainerflushPluginMap, getPlugins, getPluginsAsMap, newBuilder, newBuilder
- 
Method Details- 
getDefaultGoalThe 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:
- a String
 
- 
getResourcesThis 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.- Returns:
- a List<Resource>
 
- 
getTestResourcesThis element describes all of the classpath resources such as properties files associated with a project's unit tests. The default value issrc/test/resources.- Returns:
- a List<Resource>
 
- 
getDirectoryThe directory where all files generated by the build are placed. The default value istarget.- Returns:
- a String
 
- 
getFinalNameThe filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is${artifactId}-${version}.- Returns:
- a String
 
- 
getFiltersThe list of filter properties files that are used when filtering is enabled.- Returns:
- a List<String>
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- PluginConfiguration
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- PluginConfiguration
- Returns:
- a Builder
 
- 
withPluginsCreates a newBuildBaseinstance using the specified plugins.- Overrides:
- withPluginsin class- PluginConfiguration
- Parameters:
- plugins- the new- Collection<Plugin>to use
- Returns:
- a BuildBasewith the specified plugins
 
- 
withPluginManagementCreates a newBuildBaseinstance using the specified pluginManagement.- Overrides:
- withPluginManagementin class- PluginConfiguration
- Parameters:
- pluginManagement- the new- PluginManagementto use
- Returns:
- a BuildBasewith the specified pluginManagement
 
- 
withDefaultGoalCreates a newBuildBaseinstance using the specified defaultGoal.- Parameters:
- defaultGoal- the new- Stringto use
- Returns:
- a BuildBasewith the specified defaultGoal
 
- 
withResourcesCreates a newBuildBaseinstance using the specified resources.- Parameters:
- resources- the new- Collection<Resource>to use
- Returns:
- a BuildBasewith the specified resources
 
- 
withTestResourcesCreates a newBuildBaseinstance using the specified testResources.- Parameters:
- testResources- the new- Collection<Resource>to use
- Returns:
- a BuildBasewith the specified testResources
 
- 
withDirectoryCreates a newBuildBaseinstance using the specified directory.- Parameters:
- directory- the new- Stringto use
- Returns:
- a BuildBasewith the specified directory
 
- 
withFinalNameCreates a newBuildBaseinstance using the specified finalName.- Parameters:
- finalName- the new- Stringto use
- Returns:
- a BuildBasewith the specified finalName
 
- 
withFiltersCreates a newBuildBaseinstance using the specified filters.- Parameters:
- filters- the new- Collection<String>to use
- Returns:
- a BuildBasewith the specified filters
 
- 
newInstanceCreates a newBuildBaseinstance. Equivalent tonewInstance( true ).- Returns:
- a new BuildBase
- See Also:
 
- 
newInstanceCreates a newBuildBaseinstance using default values or not. Equivalent tonewBuilder( withDefaults ).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new BuildBase
 
- 
newBuilderCreates a newBuildBasebuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newBuildBasebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newBuildBasebuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
- from- the- BuildBaseinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newBuildBasebuilder instance using the specified object as a basis.- Parameters:
- from- the- BuildBaseinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-