I’m migrating a big Maven project with a lot of dependencies between its modules, and jars, wars, and ears. My current problem, actually, is the behavior of EarPlugin. It provides two configurations, deploy and earlib.
“deploy” is intended for jar that contains EJBs
“earlib” is intended for dependencies of those EJBs (if I understand it correctly).
So my “core” dependency actually produces a Jar with EJBs inside, that depends upon a lot of libraries and other projects.
Did you ever solve the problem? I also want to use the runtime configuration for earlib but exclude the artifact already in deploy. I read that it is possible to exclude a module but since I’m adding a project to the deploy config this seems not to be working.