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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create BuildBase instances. -
Method Summary
Modifier 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.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.toString()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.PluginConfiguration
getPluginManagement, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.model.PluginContainer
getLocation, getPlugins, getPluginsAsMap, newBuilder, newBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTracker
getLocation
-
Method Details
-
getDefaultGoal
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:
- a
String
-
getResources
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.- Returns:
- a
List<Resource>
-
getTestResources
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.- Returns:
- a
List<Resource>
-
getDirectory
The directory where all files generated by the build are placed. The default value istarget.- Returns:
- a
String
-
getFinalName
The 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
-
getFilters
The list of filter properties files that are used when filtering is enabled.- Returns:
- a
List<String>
-
with
Creates a new builder with this object as the basis.- Overrides:
within classPluginConfiguration- Returns:
- a
Builder
-
withPlugins
Creates a newBuildBaseinstance using the specified plugins.- Overrides:
withPluginsin classPluginConfiguration- Parameters:
plugins- the newCollection<Plugin>to use- Returns:
- a
BuildBasewith the specified plugins
-
withPluginManagement
Creates a newBuildBaseinstance using the specified pluginManagement.- Overrides:
withPluginManagementin classPluginConfiguration- Parameters:
pluginManagement- the newPluginManagementto use- Returns:
- a
BuildBasewith the specified pluginManagement
-
withDefaultGoal
Creates a newBuildBaseinstance using the specified defaultGoal.- Parameters:
defaultGoal- the newStringto use- Returns:
- a
BuildBasewith the specified defaultGoal
-
withResources
Creates a newBuildBaseinstance using the specified resources.- Parameters:
resources- the newCollection<Resource>to use- Returns:
- a
BuildBasewith the specified resources
-
withTestResources
Creates a newBuildBaseinstance using the specified testResources.- Parameters:
testResources- the newCollection<Resource>to use- Returns:
- a
BuildBasewith the specified testResources
-
withDirectory
Creates a newBuildBaseinstance using the specified directory.- Parameters:
directory- the newStringto use- Returns:
- a
BuildBasewith the specified directory
-
withFinalName
Creates a newBuildBaseinstance using the specified finalName.- Parameters:
finalName- the newStringto use- Returns:
- a
BuildBasewith the specified finalName
-
withFilters
Creates a newBuildBaseinstance using the specified filters.- Parameters:
filters- the newCollection<String>to use- Returns:
- a
BuildBasewith the specified filters
-
newInstance
Creates a newBuildBaseinstance. Equivalent tonewInstance(true).- Returns:
- a new
BuildBase - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newBuildBasebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newBuildBasebuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newBuildBasebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theBuildBaseinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newBuildBasebuilder instance using the specified object as a basis.- Parameters:
from- theBuildBaseinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
- Overrides:
toStringin classPluginConfiguration- See Also:
-