Download Snapshot File with Maven from a remote repository
I created a J2EE application. I used continuum to deploy it on a remote repository. Now i want to automatically download the latest SNAPSHOT war file from this remote repository to my local TOMCAT_HOME/webapps. I tried many ideas but no on开发者_运维问答e works. I wanted to use the maven-metadata.xml it contains manyinformation about the project. Any ideas?
You can try to use Aether. With some minor coding it will do the job for you. If you decide to go this way I can show a real-life example where Aether is used in order to manually download artifacts from Maven repos.
edit: Take a look at jcabi-aether wrapper around Aether.
精彩评论