Class Scm

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

public class Scm extends Object implements Serializable, Cloneable, InputLocationTracker
The <scm> element contains informations required to the SCM (Source Control Management) of the project.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Scm

      public Scm()
  • Method Details

    • clone

      public Scm clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      Scm
    • getChildScmConnectionInheritAppendPath

      public String getChildScmConnectionInheritAppendPath()
      Get when children inherit from scm connection, append path or not? Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean
      Default value is: true
      Since: Maven 3.6.1.
      Returns:
      String
    • getChildScmDeveloperConnectionInheritAppendPath

      public String getChildScmDeveloperConnectionInheritAppendPath()
      Get when children inherit from scm developer connection, append path or not? Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean
      Default value is: true
      Since: Maven 3.6.1.
      Returns:
      String
    • getChildScmUrlInheritAppendPath

      public String getChildScmUrlInheritAppendPath()
      Get when children inherit from scm url, append path or not? Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean
      Default value is: true
      Since: Maven 3.6.1.
      Returns:
      String
    • getConnection

      public String getConnection()
      Get the source control management system URL that describes the repository and how to connect to the repository. For more information, see the URL format and list of supported SCMs. This connection is read-only.
      Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm's child.scm.connection.inherit.append.path="false"
      Returns:
      String
    • getDeveloperConnection

      public String getDeveloperConnection()
      Get just like connection, but for developers, i.e. this scm connection will not be read only.
      Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm's child.scm.developerConnection.inherit.append.path="false"
      Returns:
      String
    • 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
    • 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.
    • getTag

      public String getTag()
      Get the tag of current code. By default, it's set to HEAD during development.
      Returns:
      String
    • getUrl

      public String getUrl()
      Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
      Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm's child.scm.url.inherit.append.path="false"
      Returns:
      String
    • setChildScmConnectionInheritAppendPath

      public void setChildScmConnectionInheritAppendPath(String childScmConnectionInheritAppendPath)
      Set when children inherit from scm connection, append path or not? Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean
      Default value is: true
      Since: Maven 3.6.1.
      Parameters:
      childScmConnectionInheritAppendPath - a childScmConnectionInheritAppendPath object.
    • setChildScmDeveloperConnectionInheritAppendPath

      public void setChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath)
      Set when children inherit from scm developer connection, append path or not? Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean
      Default value is: true
      Since: Maven 3.6.1.
      Parameters:
      childScmDeveloperConnectionInheritAppendPath - a childScmDeveloperConnectionInheritAppendPath object.
    • setChildScmUrlInheritAppendPath

      public void setChildScmUrlInheritAppendPath(String childScmUrlInheritAppendPath)
      Set when children inherit from scm url, append path or not? Note: While the type of this field is String for technical reasons, the semantic type is actually Boolean
      Default value is: true
      Since: Maven 3.6.1.
      Parameters:
      childScmUrlInheritAppendPath - a childScmUrlInheritAppendPath object.
    • setConnection

      public void setConnection(String connection)
      Set the source control management system URL that describes the repository and how to connect to the repository. For more information, see the URL format and list of supported SCMs. This connection is read-only.
      Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm's child.scm.connection.inherit.append.path="false"
      Parameters:
      connection - a connection object.
    • setDeveloperConnection

      public void setDeveloperConnection(String developerConnection)
      Set just like connection, but for developers, i.e. this scm connection will not be read only.
      Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm's child.scm.developerConnection.inherit.append.path="false"
      Parameters:
      developerConnection - a developerConnection object.
    • setTag

      public void setTag(String tag)
      Set the tag of current code. By default, it's set to HEAD during development.
      Parameters:
      tag - a tag object.
    • setUrl

      public void setUrl(String url)
      Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
      Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm's child.scm.url.inherit.append.path="false"
      Parameters:
      url - a url object.
    • isChildScmConnectionInheritAppendPath

      public boolean isChildScmConnectionInheritAppendPath()
    • setChildScmConnectionInheritAppendPath

      public void setChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath)
    • isChildScmDeveloperConnectionInheritAppendPath

      public boolean isChildScmDeveloperConnectionInheritAppendPath()
    • setChildScmDeveloperConnectionInheritAppendPath

      public void setChildScmDeveloperConnectionInheritAppendPath(boolean childScmDeveloperConnectionInheritAppendPath)
    • isChildScmUrlInheritAppendPath

      public boolean isChildScmUrlInheritAppendPath()
    • setChildScmUrlInheritAppendPath

      public void setChildScmUrlInheritAppendPath(boolean childScmUrlInheritAppendPath)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: