1

I try to commit some files generated by maven in SVN.

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"

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

Community
  • 1
  • 1
Kayser
  • 6,544
  • 19
  • 53
  • 86

1 Answers1

-2

From the maven scm page:

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

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.

enter image description here

aymeric
  • 3,877
  • 2
  • 28
  • 42