Does the Maven Assembly Plugin (maven-assembly-plugin) support the EAR format?

烂漫一生 提交于 2019-12-12 02:57:10

问题


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

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