Maven Dependencies

by Wolfram Saringer  (2014-02-10)
last change: 2014-02-10

Using Maven to download dependencies when a project offers no direct downloads:

1. In an empty directory create a pom.xml outlining the dependencies to download, e.g.:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="">
<description>Download Maven dependencies</description>

2. Use Maven to download the JARs including transitive dependencies:
mvn dependency:copy-dependencies

This will put the JARs into the subdirectory target/dependencies

all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.