java Maven scm:添加错误
我尝试在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
# 1 楼答案
从maven
scm
{a1}这意味着在执行
mvn scm:add
命令之前,您需要执行svn add
命令,或者打开tortoise SVN(或等效工具),然后单击Add
(请参见屏幕截图)