问题
Does the maven-assembly-plugin support EAR as a valid format? The documentation seems to indicate you can configure it any way you want:
- zip
- tar.gz
- tar.bz2
- jar
- dir
- war and any other format that the ArchiveManager has been configured for
http://maven.apache.org/plugins/maven-assembly-plugin/
回答1:
Yes, it does. Just specify in your assembly descriptor:
<formats>
<format>ear</format>
</formats>
回答2:
It can but you should use the maven-ear-plugin instead, cause it know better about ejbs etc. of which maven-assembly-plugin doesn't know anything about.
来源:https://stackoverflow.com/questions/9611640/does-the-maven-assembly-plugin-maven-assembly-plugin-support-the-ear-format