0

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/

Jean-Rémy Revy
  • 5,607
  • 3
  • 39
  • 65
  • Why not just use the maven-ear-plugin to generate an ear? – Michael Mar 08 '12 at 04:38
  • Because then it forces you to use the "Maven way" for structuring your EAR, with the WAR and EJBs as separate modules. The thought is that if I use the assembly plugin I will have more control. –  Mar 08 '12 at 14:46

2 Answers2

1

Yes, it does. Just specify in your assembly descriptor:

<formats>
  <format>ear</format>
</formats>
Andrew Logvinov
  • 21,181
  • 6
  • 52
  • 54
0

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.

khmarbaise
  • 92,914
  • 28
  • 189
  • 235