[英]Maven scm:add gives error
I try to commit some files generated by maven in SVN. 我尝试提交一些由SVN中的maven生成的文件。
scm:add -Dmessage="Database SQL's hinzugefuegt" -Dincludes="./src/main/resources/database.sql"
I get the following error 我收到以下错误
[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]
Where is the problem? 问题出在哪儿?
EDIT: I changed the directory like -Dincludes="${base.dir}/src/main/resources/database.sql"
编辑:我更改了目录,如
-Dincludes="${base.dir}/src/main/resources/database.sql"
Now i get this error: 现在我得到这个错误:
Server certificate verification failed: issuer is not trusted (https://svn.msg.de)
I found here a solution but I have no rights on server. 我在这里找到了解决方案,但是我没有服务器权限。 I can only configure the jenkins.
我只能配置詹金斯。 Maybe you know how I can embedd
--trust-server-cert
in my plugin 也许您知道如何将
--trust-server-cert
我的插件中
From the maven scm
page : 从Maven
scm
页面 :
The files should be added beforehand by an external scm client.
文件应由外部scm客户端预先添加。
Which means that you need to execute either svn add
command or to open tortoise SVN (or an equivalent) and click Add
(see screenshot) before executing the mvn scm:add
command. 这意味着您需要在执行
mvn scm:add
命令之前执行svn add
命令或打开乌龟SVN(或同等功能)并单击Add
(请参见屏幕截图)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.