public class Prerequisites extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private java.lang.String |
maven
For a plugin project (packaging is
maven-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's requireMavenVersion rule
instead. |
private InputLocation |
mavenLocation
Field mavenLocation.
|
Constructor and Description |
---|
Prerequisites() |
Modifier and Type | Method and Description |
---|---|
Prerequisites |
clone()
Method clone.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
java.lang.String |
getMaven()
Get for a plugin project (packaging is
maven-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's requireMavenVersion rule
instead. |
private InputLocation |
getOtherLocation(java.lang.Object key) |
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setMaven(java.lang.String maven)
Set for a plugin project (packaging is
maven-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's requireMavenVersion rule
instead. |
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
private java.lang.String maven
maven-plugin
), the minimum version of
Maven required to use the resulting plugin.requireMavenVersion
rule
instead.private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation mavenLocation
public Prerequisites clone()
clone
in class java.lang.Object
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- public java.lang.String getMaven()
maven-plugin
), the minimum version of
Maven required to use the resulting plugin.requireMavenVersion
rule
instead.public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- location
- public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- location
- private InputLocation getOtherLocation(java.lang.Object key)
key
- public void setMaven(java.lang.String maven)
maven-plugin
), the minimum version of
Maven required to use the resulting plugin.requireMavenVersion
rule
instead.maven
-