hi, I use Maven to build a web application and would like to ask for the best practice of putting the jars to the web-inf/lib folder.
at the maven dependency list, there is no seperation between run-time and compile time dependencies. How do you make Maven to copy all the required jars to the web-inf/lib folder? I can think of three ways: i. use the ant:generate to generate an ant script, that download all jars to lib/ of the project. And copy lib/* to the web-inf/lib ii. maintain a list of jar file and use ANT to copy the jars from maven's repository. iii. do copying manually from maven's repository. for the first way, it copies all jar files, which is not desirable. But it is simple to implement. For the other two ways, I got to do manual works, but can include only run time libraries in the final archive (Web ARchive). What are the better ways? besides, do you just copy the jars in building time (building of the .war, in my case)? I make my IDE use all jars in the lib/* currently. how do you do the above tasks? could you share your best practice in using Maven, please? regards, mingfai -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
