【问题标题】:Maven scm:add gives errorMaven scm:add 给出错误
【发布时间】:2012-09-06 19:45:12
【问题描述】:

我尝试在SVN中提交一些maven生成的文件。

scm:add -Dmessage="Database SQL's hinzugefuegt" -Dincludes="./src/main/resources/database.sql"

我收到以下错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.8:add (default-cli) on project GEM: Cannot run add command : Exception while executing SCM command. You must provide at least one file/directory to add -> [Help 1]

问题出在哪里?


编辑:我将目录更改为-Dincludes="${base.dir}/src/main/resources/database.sql"

现在我得到这个错误:

Server certificate verification failed: issuer is not trusted (https://svn.msg.de)

我找到了here 一个解决方案,但我对服务器没有权限。我只能配置詹金斯。也许你知道我如何在我的插件中嵌入 --trust-server-cert

【问题讨论】:

  • 包含路径是否正确?
  • 您可以尝试包含 "**/*.sql" 中的模式(或尝试完全删除它)。

标签: java svn maven plugins commit


【解决方案1】:

来自行家scmpage

文件应由外部 scm 客户端预先添加。

这意味着在执行mvn scm:add 命令之前,您需要执行svn add 命令或打开tortoise SVN(或等效项)并单击Add(见屏幕截图)。

【讨论】:

  • 该描述是针对 scm“签入”和“更新”目标的。
猜你喜欢
  • 2015-06-11
  • 1970-01-01
  • 1970-01-01
  • 2013-09-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多