Archive for December, 2009

How to download dependencies sources via Maven

December 10, 2009 Leave a comment

You can use the dependency plugin adding this to your pom.xml  (i’ve reported the pom’s build section):











<!-- you have to insert this plugin definition-->






then you can use the command mvn dependency:sources.
The sources will be downloaded into the mvn local repository, together with the dependency itself.
This is very useful with maven modules in intellij idea because it links automatically sources and jars, configuring debugging too.
Categories: Uncategorized