Hi, > I have a maven project that builds Java jar files. I wan to run a python > script as one of the goals in the verify phase. I am planning to use the > ant run plugin for running the python script. The python script is stored > in a separate repository that I would like to copy to my project root > folder using maven. Is this possible? What's the best way to approach this?
Although I have to admin I never tried it ;-), but two ideas: 1) Use the JGit Ant task ([1]) to checkout your source code before you execute the python script from within the Ant task. 2) Add a second plugin configuration for maven scm that is being executed in the verify phase. Configure the scm plugin and add at least the (developer) connection url, and perhaps the destination (checkout) directory in which your script is to be stored. See [2]. [1] https://wiki.eclipse.org/JGit/User_Guide#Ant_Tasks [2] https://maven.apache.org/scm/maven-scm-plugin/checkout-mojo.html HTH Thorsten
