Every time I think I'm getting the hang of
Maven, something else comes along to baffle me. I'm in the progress of porting a legacy web app from
JBoss 4.2.3 to JBoss 7. I've got it working, and am trying to get a working build for it. I found a handy tip that you if you put this into the root pom's dependency management section:
... then you don't need to worry about version numbers for the various components included in JBoss and the
JEE spec (like JBoss logging, EJBs,
Servlets, etc.) in any of your sub-projects.
For example, you could have:
... and be sure that you're compiling against the version of Hibernate included with JBoss 7. So that's cool. I can't figure out the right dependencies though. For example, I'm building an EJB jar (with EJB 3). After some searching, I found various answers for how to bring in the EJB dependencies:
Finally, the one that worked was:
I'm not even sure that's bringing the JBoss 7 version or if it's just close enough that it still works. Next I have to compile a web app, so I'm going to have figure out dependencies for servlets, JSPs, JSFs, and probably a few other things. Where do I find this information?