有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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) 个答案

  1. # 1 楼答案

    从mavenscm{a1}

    The files should be added beforehand by an external scm client.

    这意味着在执行mvn scm:add命令之前,您需要执行svn add命令,或者打开tortoise SVN(或等效工具),然后单击Add(请参见屏幕截图)

    enter image description here