Package org.apache.maven.model
Class Prerequisites
- java.lang.Object
-
- org.apache.maven.model.Prerequisites
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Prerequisites extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Describes the prerequisites a project can have.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.private java.lang.StringmavenFor 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.private InputLocationmavenLocationField mavenLocation.
-
Constructor Summary
Constructors Constructor Description Prerequisites()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Prerequisitesclone()Method clone.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.java.lang.StringgetMaven()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.private InputLocationgetOtherLocation(java.lang.Object key)voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetMaven(java.lang.String maven)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.voidsetOtherLocation(java.lang.Object key, InputLocation location)
-
-
-
Field Detail
-
maven
private java.lang.String maven
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.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
mavenLocation
private InputLocation mavenLocation
Field mavenLocation.
-
-
Method Detail
-
clone
public Prerequisites clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Prerequisites
-
getLocation
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
getMaven
public java.lang.String 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
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
setMaven
public void setMaven(java.lang.String maven)
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-
-
-