Question

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/

Was it helpful?

Solution

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

<formats>
  <format>ear</format>
</formats>

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top