Package org.apache.maven.api.model
Class Scm
java.lang.Object
org.apache.maven.api.model.Scm
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Scm
extends Object
implements Serializable, InputLocationTracker
The 
<scm> element contains informations required to the SCM
 (Source Control Management) of the project.- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Scm instances.
- 
Method SummaryModifier and TypeMethodDescriptionWhen children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1When children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1When children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1The source control management system URL that describes the repository and how to connect to the repository.Just likeconnection, but for developers, i.e.getLocation(Object key) Gets the location of the specified field in the input source.getTag()The tag of current code.getUrl()The URL to the project's browsable SCM repository, such as ViewVC or Fisheye.booleanbooleanbooleanstatic Scm.BuilderCreates a newScmbuilder instance.static Scm.BuildernewBuilder(boolean withDefaults) Creates a newScmbuilder instance using default values or not.static Scm.BuildernewBuilder(Scm from) Creates a newScmbuilder instance using the specified object as a basis.static Scm.BuildernewBuilder(Scm from, boolean forceCopy) Creates a newScmbuilder instance using the specified object as a basis.static ScmCreates a newScminstance.static ScmnewInstance(boolean withDefaults) Creates a newScminstance using default values or not.with()Creates a new builder with this object as the basis.withChildScmConnectionInheritAppendPath(String childScmConnectionInheritAppendPath) Creates a newScminstance using the specified childScmConnectionInheritAppendPath.withChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath) Creates a newScminstance using the specified childScmDeveloperConnectionInheritAppendPath.withChildScmUrlInheritAppendPath(String childScmUrlInheritAppendPath) Creates a newScminstance using the specified childScmUrlInheritAppendPath.withConnection(String connection) Creates a newScminstance using the specified connection.withDeveloperConnection(String developerConnection) Creates a newScminstance using the specified developerConnection.Creates a newScminstance using the specified tag.Creates a newScminstance using the specified url.
- 
Method Details- 
getConnectionThe 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'schild.scm.connection.inherit.append.path="false"- Returns:
- a String
 
- 
getDeveloperConnectionJust likeconnection, 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'schild.scm.developerConnection.inherit.append.path="false"- Returns:
- a String
 
- 
getTagThe tag of current code. By default, it's set to HEAD during development.- Returns:
- a String
 
- 
getUrlThe 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'schild.scm.url.inherit.append.path="false"- Returns:
- a String
 
- 
getChildScmConnectionInheritAppendPathWhen children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1- Returns:
- a String
 
- 
getChildScmDeveloperConnectionInheritAppendPathWhen children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1- Returns:
- a String
 
- 
getChildScmUrlInheritAppendPathWhen children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1- Returns:
- a String
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withConnectionCreates a newScminstance using the specified connection.- Parameters:
- connection- the new- Stringto use
- Returns:
- a Scmwith the specified connection
 
- 
withDeveloperConnectionCreates a newScminstance using the specified developerConnection.- Parameters:
- developerConnection- the new- Stringto use
- Returns:
- a Scmwith the specified developerConnection
 
- 
withTagCreates a newScminstance using the specified tag.- Parameters:
- tag- the new- Stringto use
- Returns:
- a Scmwith the specified tag
 
- 
withUrlCreates a newScminstance using the specified url.- Parameters:
- url- the new- Stringto use
- Returns:
- a Scmwith the specified url
 
- 
withChildScmConnectionInheritAppendPath@Nonnull public Scm withChildScmConnectionInheritAppendPath(String childScmConnectionInheritAppendPath) Creates a newScminstance using the specified childScmConnectionInheritAppendPath.- Parameters:
- childScmConnectionInheritAppendPath- the new- Stringto use
- Returns:
- a Scmwith the specified childScmConnectionInheritAppendPath
 
- 
withChildScmDeveloperConnectionInheritAppendPath@Nonnull public Scm withChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath) Creates a newScminstance using the specified childScmDeveloperConnectionInheritAppendPath.- Parameters:
- childScmDeveloperConnectionInheritAppendPath- the new- Stringto use
- Returns:
- a Scmwith the specified childScmDeveloperConnectionInheritAppendPath
 
- 
withChildScmUrlInheritAppendPathCreates a newScminstance using the specified childScmUrlInheritAppendPath.- Parameters:
- childScmUrlInheritAppendPath- the new- Stringto use
- Returns:
- a Scmwith the specified childScmUrlInheritAppendPath
 
- 
newInstanceCreates a newScminstance. Equivalent tonewInstance( true ).- Returns:
- a new Scm
- See Also:
 
- 
newInstanceCreates a newScminstance using default values or not. Equivalent tonewBuilder( withDefaults ).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Scm
 
- 
newBuilderCreates a newScmbuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newScmbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newScmbuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
- from- the- Scminstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newScmbuilder instance using the specified object as a basis.- Parameters:
- from- the- Scminstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
isChildScmConnectionInheritAppendPathpublic boolean isChildScmConnectionInheritAppendPath()
- 
isChildScmDeveloperConnectionInheritAppendPathpublic boolean isChildScmDeveloperConnectionInheritAppendPath()
- 
isChildScmUrlInheritAppendPathpublic boolean isChildScmUrlInheritAppendPath()
 
-