Package org.apache.maven.model
Class Prerequisites
java.lang.Object
org.apache.maven.model.Prerequisites
- All Implemented Interfaces:
Serializable,Cloneable,InputLocationTracker
Describes the prerequisites a project can have.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Method clone.getLocation(Object key) Gets the location of the specified field in the input source.getMaven()Get 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.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidSet 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.voidsetOtherLocation(Object key, InputLocation location)
-
Constructor Details
-
Prerequisites
public Prerequisites()
-
-
Method Details
-
clone
Method clone. -
getLocation
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key- a key object.- Returns:
- InputLocation
-
getMaven
Get 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:
- String
-
setLocation
Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key- a key object.location- a location object.
-
setOtherLocation
- Parameters:
key- a key object.location- a location object.
-
setMaven
Set 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.- Parameters:
maven- a maven object.
-