Copy Maven dependencies to lib folder

Problem: How can I copy all maven dependencies to a target folder say lib
sometimes all you want is to copy all dependencies (jars) to a destination-folder. TheMaven Dependency Plug-In will kindly assist you to copy maven dependencies to a target folder.

Include the following plugin in your pom file:

org.apache.maven.plugins maven-dependency-plugin copy-dependencies package copy-dependencies ${project.build.directory}/alternateLocation false false true


From command prompt run : mvn dependency:copy-dependencies

You will now have a target folder with all your jars!

Comments

Popular posts from this blog

XPATH for IE / internet explorer

All time good software testing books!

Website's underlying technology for automation