Hello everyone,

I'm building an EAR and I having some difficulties dealing with common
dependencies among modules.  Here are some basic questions:

1)  How should JARs shipped within my EAR be treated? (see below)
2)  Why does Maven pull in dependencies not listed in any of my pom files?
For some reason I'm getting commons-logging, xml-xerces, as well as
commons-codec even though they are not listed in any of my pom files?
3)  Should common dependencies among modules be listed per pom (repeated) or
used at the top level?

Architecturally, I thought what I would do is put all the dependencies that
ship with my platform in the top level pom file as provided.  Which seems to
work fine.  However, I now have some other dependencies that normally
would be under a compile scope but are provided within my EAR (third party
libraries).  I noticed that I HAVE to put them in the EAR pom of my project
for them to be included if I list them under <javaModule> tag.  This causes
duplication of dependencies in my project.

Any feedback would be much appreciated!

Thanks!

-aps

--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson

Reply via email to