Package org.apache.maven.api.model
Class Prerequisites
java.lang.Object
org.apache.maven.api.model.Prerequisites
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Prerequisites
extends Object
implements Serializable, InputLocationTracker
Describes the prerequisites a project can have.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Prerequisites instances.
- 
Method SummaryModifier and TypeMethodDescriptiongetLocation(Object key) Gets the location of the specified field in the input source.getMaven()For a plugin project (packaging ismaven-plugin), the minimum version of Maven required to use the resulting plugin.
 In Maven 2, this was also specifying the minimum version of Maven required to build a project, but this usage is deprecated in Maven 3 and not checked any more: use the Maven Enforcer Plugin'srequireMavenVersionrule instead.static Prerequisites.BuilderCreates a newPrerequisitesbuilder instance.static Prerequisites.BuildernewBuilder(boolean withDefaults) Creates a newPrerequisitesbuilder instance using default values or not.static Prerequisites.BuildernewBuilder(Prerequisites from) Creates a newPrerequisitesbuilder instance using the specified object as a basis.static Prerequisites.BuildernewBuilder(Prerequisites from, boolean forceCopy) Creates a newPrerequisitesbuilder instance using the specified object as a basis.static PrerequisitesCreates a newPrerequisitesinstance.static PrerequisitesnewInstance(boolean withDefaults) Creates a newPrerequisitesinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newPrerequisitesinstance using the specified maven.
- 
Method Details- 
getMavenFor a plugin project (packaging ismaven-plugin), the minimum version of Maven required to use the resulting plugin.
 In Maven 2, this was also specifying the minimum version of Maven required to build a project, but this usage is deprecated in Maven 3 and not checked any more: use the Maven Enforcer Plugin'srequireMavenVersionrule instead.- Returns:
- a String
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withMavenCreates a newPrerequisitesinstance using the specified maven.- Parameters:
- maven- the new- Stringto use
- Returns:
- a Prerequisiteswith the specified maven
 
- 
newInstanceCreates a newPrerequisitesinstance. Equivalent tonewInstance(true).- Returns:
- a new Prerequisites
- See Also:
 
- 
newInstanceCreates a newPrerequisitesinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Prerequisites
 
- 
newBuilderCreates a newPrerequisitesbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newPrerequisitesbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPrerequisitesbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Prerequisitesinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPrerequisitesbuilder instance using the specified object as a basis.- Parameters:
- from- the- Prerequisitesinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-