Hi Guys. I have
Maven (the M2 plugin) working in eclipse with standard (non web)
java projects.
I also have maven working on the command line, and now have a large repository in /usr/local/apache-maven/myRepository/
But after adding m2 to a web project, the
JSP files do not "see" the M2 dependencies.
What I would like to do , is synchronize my maven repository on my hard disk with my eclipse web application. Or Alternatively, I'd like to have my pom.xml file in eclipse be smart enough to download files from scratch, but at least directly to my WEB-INF / lib directory.
Right now, eclipse is doing a hybrid : It's using the maven plugin to download new dependencies when I add them to pom.xml (thats good!) but, its downloading them to my maven repo on disk (in usr/local). Again, thats OKAY with me, but it is annoying because eclipse is smart enough to SEE my maven repository is external, INVOKE maven to get external jars.... but NOT smart enough to automatically PUT those jars in the WEB-INF directory !!!???
How can I get maven to do this the right way (in or out of eclipse .... is there a "mvn" command i can run outside of eclipse that will automatically add new jars to the build path in my eclipse web project ? If so, I'm okay doing that) ? I DO NOT want to simply download a "new " version of the maven plugin that "automagically" manages this issue for me using some eclipse specific logic.