The following command can be used to export all the dependency jars declared in the pom file.
mvn dependency:copy-dependencies -DoutputDirectory=OUTPUT_DIR
the output_DIR is relative to the project folder.