If you use Emacs/
JDEE and Maven, you may want to look at my 
pom-parser.el, which lets you refer to information in your POM from your JDEE project files.  The code is loosely based on 
Ole Arndt's work, but works with Maven 2.  It delegates much of the work to Maven itself and the 
help and 
dependency plugins.