Maven build run svn get

I have a project build that should include files from a different svn location during build. I want to run svn get and then copy these files to the appropriate build folder. Investigating this problem, it seems that I could use ant tasks, but I wanted to figure out what might be the best approach for this build.

+4
source share
2 answers

You can use maven-scm-plugin . According to the scm matrix , both validation and updating are allowed.

+4
source

Robert's answer is good if the project is large, although you will check a lot of content to get a single file.

If you want to get a separate file from SCM, the Maven SCM API allows you to directly interact with the SCM repository to invoke arbitrary targets. In this related answer, I provide an example of a custom Mojo that commits a single file, if you implement this mojo and change the command from add to checkout you will avoid checking the entire project.

0
source

All Articles