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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Prerequisites instances. - 
Method Summary
Modifier 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
- 
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.- Returns:
 - a 
String 
 - 
getLocation
Gets the location of the specified field in the input source.- Specified by:
 getLocationin interfaceInputLocationTracker
 - 
with
Creates a new builder with this object as the basis.- Returns:
 - a 
Builder 
 - 
withMaven
Creates a newPrerequisitesinstance using the specified maven.- Parameters:
 maven- the newStringto use- Returns:
 - a 
Prerequisiteswith the specified maven 
 - 
newInstance
Creates a newPrerequisitesinstance. Equivalent tonewInstance(true).- Returns:
 - a new 
Prerequisites - See Also:
 
 - 
newInstance
Creates 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 
 - 
newBuilder
Creates a newPrerequisitesbuilder instance. Equivalent tonewBuilder(true).- Returns:
 - a new 
Builder - See Also:
 
 - 
newBuilder
Creates a newPrerequisitesbuilder instance using default values or not.- Parameters:
 withDefaults- the boolean indicating whether default values should be used- Returns:
 - a new 
Builder 
 - 
newBuilder
Creates a newPrerequisitesbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
 from- thePrerequisitesinstance to use as a basis- Returns:
 - a new 
Builder 
 - 
newBuilder
Creates a newPrerequisitesbuilder instance using the specified object as a basis.- Parameters:
 from- thePrerequisitesinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
 - a new 
Builder 
 
 -