Creating '--rsyncable' maven assembly

此生再无相见时 提交于 2019-12-05 02:39:20

问题


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.

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?

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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/22354306/creating-rsyncable-maven-assembly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!