开发者

deploy java jar remotely during maven build

开发者 https://www.devze.com 2023-04-10 00:45 出处:网络
I have a small maven project that build a java jar file. I added a plugin (maven-antrun-plugin) in order to start it during maven\'s build phase. This also works in the build server (Continuum) which

I have a small maven project that build a java jar file. I added a plugin (maven-antrun-plugin) in order to start it during maven's build phase. This also works in the build server (Continuum) which i开发者_开发百科s good.

Now I would also like to copy the artifact jar to another server. What is the best way for doing that? I saw that you can make maven execute bash script, would that be a good way?

thanks!


It depends on your server and what options you have for uploading jars there. One of the options could be to use Maven Wagon plugin, which supports number of protocols, including ssh, ftp, webdaw.

0

精彩评论

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