将 Maven SCM 标签与 Perforce 结合使用

发布于 2024-07-17 14:34:14 字数 45 浏览 4 评论 0原文

有谁有关于如何为 perforce 配置 Maven SCM 标签的示例吗?

Does anyone have examples on how to configure the Maven SCM tag for perforce?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫瑟鸿黎 2024-07-24 14:34:14

我刚刚发现这个有答案。


RE: mvn release with perforce

<scm>
  <connection>scm:perforce://depot/simple</connection>
  <developerConnection>scm:perforce://depot/simple</developerConnection>
  <url>scm:perforce://depot/simple</url>
</scm>

我也尝试将其与发布插件一起使用,因为我的 perforce 需要一个用户 ID,我可以在发布插件的配置部分中指定它

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-release-plugin</artifactId>
  <version>2.0-beta-9</version>
  <configuration>
    <username>myUser</username>
  </configuration>
</plugin>

I just found this that has the answer.


RE: mvn release with perforce

<scm>
  <connection>scm:perforce://depot/simple</connection>
  <developerConnection>scm:perforce://depot/simple</developerConnection>
  <url>scm:perforce://depot/simple</url>
</scm>

I was also trying to use this with the release plugin and since my perforce needs a user Id I can specify that in the configuration section of the release plugin

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-release-plugin</artifactId>
  <version>2.0-beta-9</version>
  <configuration>
    <username>myUser</username>
  </configuration>
</plugin>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文