有没有类似于 Maven Cargo 但适用于 AppAssembler 的东西?
我想部署生成的 Maven AppAssembler assembler/
目录到文件系统、SSH 或其他系统中的某个位置。 Cargo 可以为我做这件事吗,或者是否有一个等效的部署工具可以让我全局化一堆文件(在本例中为 target/appassembler/
目录)并将它们部署到目的地?
我有几个按计划任务运行的命令行应用程序(通过 cron 或 Windows Scheduler),我想将它们部署到这些远程位置(一种情况是通过 SSH,另一种情况是网络共享 \\servername \C$\随便\
)。我不知道如何才能做到这一点,因为我一直在寻找的所有部署插件都适合 Web 应用程序和应用程序容器或远程存储库(如 Nexus)。
I want to deploy a generated Maven AppAssembler assembler/
directory to somewhere in a file system, SSH, or whatnot. Can Cargo do that for me, or is there an equivalent deployment tool that will let me glob a bunch of files (in this case the target/appassembler/
directory) and deploy them to a destination?
I have a couple command-line applications that run as scheduled tasks (via cron or Windows Scheduler), and I want to deploy them out to these remote locations (in one case via SSH, and another a network share \\servername\C$\whatever\
). I don't know how I can accomplish that, since all of the deployment plugins I have been looking at cater to web applications and app containers or Remote repos like Nexus.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 maven 复制插件 - 它具有出色的 网络支持(scp、FTP、HTTP)。
您可能还会发现有用的 maven sshexec 插件。
Try maven copy plugin - it has excellent networking support (scp,FTP,HTTP).
You might also find useful maven sshexec plugin.
我知道这个问题已经很老了,但是因为其他人可能也对此感兴趣:
我没有完整/具体的示例,因为我从未尝试过,但也许 maven 程序集插件 可以用于此,具有 dir 程序集格式?
I know this question is quite old, but since someone else might also be interested in this:
I don't have a complete/concrete example for this, since I never tried it, but maybe the maven assembly plugin could be used for this, with the dir assembly format?