开发者

Download Snapshot File with Maven from a remote repository

开发者 https://www.devze.com 2023-02-17 07:28 出处:网络
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_HOM

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号