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 Link icon

    • Scm Link icon

      public Scm()
  • Method Details Link icon

    • clone Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public boolean isChildScmConnectionInheritAppendPath()
    • setChildScmConnectionInheritAppendPath Link icon

      public void setChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath)
    • isChildScmDeveloperConnectionInheritAppendPath Link icon

      public boolean isChildScmDeveloperConnectionInheritAppendPath()
    • setChildScmDeveloperConnectionInheritAppendPath Link icon

      public void setChildScmDeveloperConnectionInheritAppendPath(boolean childScmDeveloperConnectionInheritAppendPath)
    • isChildScmUrlInheritAppendPath Link icon

      public boolean isChildScmUrlInheritAppendPath()
    • setChildScmUrlInheritAppendPath Link icon

      public void setChildScmUrlInheritAppendPath(boolean childScmUrlInheritAppendPath)
    • toString Link icon

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