创建'--rsyncable'Maven程序集 [英] Creating '--rsyncable' maven assembly

查看:57
本文介绍了创建'--rsyncable'Maven程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,maven-assembly-plugin仅允许使用预定义的输出存档格式,例如.ziptar.gz.这些文档没有提到直接创建--rsyncable gzip的配置.

Currently, maven-assembly-plugin allows only pre-defined output archive formats, such as .zip, tar.gz. The docs do not mention straightforward configuration to create --rsyncable gzip.

到目前为止,我已经配置了maven-archiver了,但是文档却相当稀缺.

So far, I've gotten as far as maven-archiver should be configured, however the docs are rather scarce.

想知道,有人已经探索过这个吗?

Just wondering, anyone already explored this?

更新: Maven-archiver 使用 org.codehaus.plexus.archiver.gzip ,其中使用 java.util.zip .GZIPOutputStream ,它是zip的标准表示,预计不提供-rsyncable 支持.

Update: Maven-archiver uses org.codehaus.plexus.archiver.gzip, which uses java.util.zip.GZIPOutputStream, which is a standard impl of zip, expectedly without --rsyncable support.

最可行的选择似乎是搜索替代的zip实施并将其推广给丛丛人.

Looks like the most feasible option is to search for alternative zip implementation and promote it to plexus guys.

推荐答案

我遇到了同样的问题,并试图找到一种创建可rsyncable tar.gz档案的方法,但无济于事.但是我可以通过使用"zip"作为格式来解决它.默认情况下,"zip"似乎是rsyncable的.最有可能的罐子"也可以解决问题.因此,如果没有特殊原因使用'tar.gz'或'tar.bz2',我现在更喜欢使用'zip'进行打包,以便从rsync上获得将程序包传输到远程计算机的优势.

I had the same problem and tried to find a way to create rsyncable tar.gz archives but to no avail. However I could solve it by using 'zip' as format. 'zip' seems to be rsyncable by default. Most probably 'jar' will do the trick as well. So, if there is no specific reason to use 'tar.gz' or 'tar.bz2', I prefer 'zip' now for packaging in order to get the advantage from rsync on transfering my packages to remote machines.

这篇关于创建'--rsyncable'Maven程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆