小编Jan*_*dek的帖子

pom.xml scm 连接字符串的语法

我正在清理项目中的 pom 文件,发现我使用了两个略有不同的 scm 记录:

<scm>
    <connection>scm:git:https://github.com/jadler-mocking/jadler.git</connection>
    <developerConnection>scm:git:https://github.com/jadler-mocking/jadler.git</developerConnection>
    <url>https://github.com/jadler-mocking/jadler</url>
</scm>
Run Code Online (Sandbox Code Playgroud)

对比

<scm>
    <connection>scm:git:git@github.com:jadler-mocking/jadler.git</connection>
    <developerConnection>scm:git:git@github.com:jadler-mocking/jadler.git</developerConnection>
    <url>https://github.com/jadler-mocking/jadler</url>
</scm>
Run Code Online (Sandbox Code Playgroud)

到目前为止,我还没有找到任何描述连接字符串语法的资源。这两者有什么区别?

github pom.xml maven-scm maven

5
推荐指数
1
解决办法
3722
查看次数

标签 统计

github ×1

maven ×1

maven-scm ×1

pom.xml ×1