Creating '--rsyncable' maven assembly

2019-03-31 05:24发布

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
2楼-- · 2019-03-31 05:49

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.

查看更多
登录 后发表回答