【问题标题】:Making maven release to work with perforce repository使 maven 版本与 perforce 存储库一起使用
【发布时间】:2016-11-21 01:25:01
【问题描述】:

我是 perforce 的新手,并试图让发布过程正常工作。在谷歌上搜索这个主题后,我尝试了一些建议,但没有任何效果。终于在stackoverflow(Configuring Perforce scm into maven project to get latest changelist)上看到了一个帖子,并点击了解决方案中的链接,即:

https://swarm.workshop.perforce.com/files/guest/dantran/p4maven/README.md#view

我可以执行“mvn scm:status”和“mvn scm:changelog”,但是无法发布。首先,它在修改 pom.xml 文件时出现“拒绝访问”错误,因此我不得不手动从该文件中删除只读标志。我希望插件来管理这个。 第二个问题是它不断失败并出现“Changelist not available”错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project sandbox: An error is occurred in the tag process: Exception while executing SCM command. Unable to retrieve current change list number: Changelist not available -> [Help 1]

我不知道该怎么做,因为我已经没有不同的想法了。

任何帮助将不胜感激。

【问题讨论】:

    标签: maven perforce release maven-release-plugin maven-scm


    【解决方案1】:

    您需要在 settings.xml 中定义服务器 例如:

    <servers>
      <server>
        <id>rtc:9444</id>
        <username>build</username>
        <password>build</password>
      </server>
    </servers>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-08
      • 2011-08-25
      • 2011-06-17
      • 1970-01-01
      • 1970-01-01
      • 2013-06-06
      • 1970-01-01
      • 2015-10-02
      相关资源
      最近更新 更多