处理单个maven项目中的多个工件 [英] Handling multiple artifacts from single maven project

查看:225
本文介绍了处理单个maven项目中的多个工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个产生许多工件的maven项目。当然这对Maven的最佳实践(一个Pom一个神器)是一种抵制,但是它是Adobe Flex项目,它产生了许多* swf模块,而且真的没有理由为每个模块创建一个单独的项目。



对于我来说,将所有的swf模块作为一个zip压缩文件来处理将非常方便。 zip档案将是我的神器。

所以我正在寻找方式来打包和解压缩我的zip文件与maven。


$ b $如果您有任何想法,请与我分享。



祝好,
最大

nofollow> http://maven.apache.org/plugins/maven-assembly-plugin/ 和Maven依赖插件 http://maven.apache.org/plugins/maven-dependency-plugin/


I have a maven project that produces many artifacts. Of course it is kind of against maven best practice (one pom one artifact), but it is Adobe Flex project that produces many *swf modules and it is really makes no sence to create a separate project for each module.

For me it would be very convinient to handle all swf modules as a single zip archive eg. zip archive would be my artifact.

So I am looking for the way to pack and unpack my zip artifact with maven.

If you have any ideas, please share then with me.

Best regards, Max

解决方案

Answer: Maven Assembly Plugin http://maven.apache.org/plugins/maven-assembly-plugin/ and Maven Dependency Plugin http://maven.apache.org/plugins/maven-dependency-plugin/

这篇关于处理单个maven项目中的多个工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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