我们如何使用组装插件将两个单独的目录压缩为单独的zip文件? [英] How can we zip two separate directories in seperate zip files, using assembly plugin?

查看:96
本文介绍了我们如何使用组装插件将两个单独的目录压缩为单独的zip文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下面用相同的程序集描述符进行了尝试,并在pom.xml中执行了两次.

I have tried below with same assembly descriptor with two executions in pom.xml.

问题在于两个zip文件都混合在一起,因为它们一个接一个地调用另一个相同的文件.

The problem is both zip files are mixing since they are calling one after other the same file.

有没有什么方法可以实现这一目标而无需使用两个不同的程序集描述符文件?

Is there any way we can achieve this without going for two different assembly descriptor files?

推荐答案

如果要从两个不同的目录创建两个不同的zip文件,则需要两个不同的程序集描述符. 每个描述符都描述哪些文件进入最终结果.

If you're trying to create two different zip files from two different directories, you'll need two different assembly descriptors. Each descriptor describes which files go into the end result.

这篇关于我们如何使用组装插件将两个单独的目录压缩为单独的zip文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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