Syntax of the pom.xml scm connection string

孤街醉人 提交于 2019-12-05 14:35:14

Both are valid SCM URLs and they will have exactly the same result. The only difference will be in the implementation of the communication with the Git server (is it HTTPS or HTTP etc.).

From the Maven SCM Git implementation, all those URLs are valid:

scm:git:git://server_name[:port]/path_to_repository
scm:git:http://server_name[:port]/path_to_repository
scm:git:https://server_name[:port]/path_to_repository
scm:git:ssh://server_name[:port]/path_to_repository
scm:git:file://[hostname]/path_to_repository

Note that you can validate that your SCM information is correct with the help of the scm:validate goal:

Validate scm connection string.

The reference format for the SCM connection string can be found in the Maven docs:

All SCM connections are made through a common URL structure.

scm:[provider]:[provider_specific]

Where provider is the type of SCM system.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!