Hi,
I'm trying to create a test ear within ejb project using maven-ear-plugin (maven2 2.0.2). Everything is fine to the point I try to package the ejb jar itself. The plugin packages the loose ejb classes into the ear (debatable is the value of this); these classes obviously will not be deployed as ejbs unless packaged in ejb jar. All the dependency ejb jars are packaging fine and they appear correctly in application.xml. But how to package and add the ejbs from the current project? I tried things like adding the jar as its own dependency, but not surprisingly maven whinged about cyclic dependency. Has anyone tried to do this? Or is there any other way to build a test ear from an ejb project? Seems such an obvious thing that I can't believe this is impossible. Thanks and regards Maciej Mastalarczuk
