Downloading maven dependency source jars

I’ve been working on a new project that I’m planning to open source real soon – stay tuned.

When I’m implementing interfaces in a dependent package using Idea/Maven I want to tick the “copy javadoc” button to at least have the documentation from the intereface. The issue of course is that I don’t have the sources.

Run the following command:

mvn dependency:sources

Maven will download any sources it can find for in remote repositories for your dependencies and Idea finds them like magic. So now not only can you copy javadoc, you can also click the line number in the stack trace and get something meaningful – not “compiled code”.

Reblog this post [with Zemanta]

Related posts:

  1. Integration testing in maven – With Maven, Cargo, httpunit and Selenium
  2. Open Source for Business
  3. Some progress on continuous deployment

About this entry

You’re currently reading “Downloading maven dependency source jars,” an entry on andrewmccall.com

Published:
11.3.09 / 5pm
Category:
code, open source
Tags:
, , , , , ,

My Projects

Twitter


Comments

Jump to comment form | comments rss [?] | trackback uri [?]
blog comments powered by Disqus