Class Prerequisites

java.lang.Object
org.apache.maven.model.Prerequisites
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

public class Prerequisites extends Object implements Serializable, Cloneable, InputLocationTracker
Describes the prerequisites a project can have.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Prerequisites

      public Prerequisites()
  • Method Details

    • clone

      public Prerequisites clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      Prerequisites
    • getLocation

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      Specified by:
      getLocation in interface InputLocationTracker
      Parameters:
      key - a key object.
      Returns:
      InputLocation
    • getMaven

      public 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.
      Returns:
      String
    • setLocation

      public void setLocation(Object key, InputLocation location)
      Description copied from interface: InputLocationTracker
      Sets the location of the specified field.
      Specified by:
      setLocation in interface InputLocationTracker
      Parameters:
      key - a key object.
      location - a location object.
    • setOtherLocation

      public void setOtherLocation(Object key, InputLocation location)
      Parameters:
      key - a key object.
      location - a location object.
    • setMaven

      public void setMaven(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.
      Parameters:
      maven - a maven object.