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.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPrerequisites(Prerequisites.Builder builder) Constructor for this class, to be called from its subclasses andPrerequisites.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionGets the input location that caused this model to be read.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of 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.
- 
Constructor Details- 
PrerequisitesConstructor for this class, to be called from its subclasses andPrerequisites.Builder.- See Also:
 
 
- 
- 
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
 
- 
getLocationKeysGets the keys of the locations of the input source.
- 
getImportedFromGets the input location that caused this model to be read.- Specified by:
- getImportedFromin interface- InputLocationTracker
- Returns:
- InputLocation
 
- 
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
 
 
-