我尝试在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一个解决方案,但我对服务器没有权限。我只能配置 Jenkins 。也许您知道如何在我的插件中嵌入 --trust-server-cert
最佳答案
来自maven scm
page :
The files should be added beforehand by an external scm client.
这意味着您需要执行 svn add
命令或打开 tortoise SVN(或等效命令)并单击 Add
(参见屏幕截图),然后再执行 mvn scm:add
命令。
关于java - Maven单片机:add gives error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12411040/