Creating source and document blocks

I noticed something really cool about the m2eclipse plugin. When I try to view the source in one of the class files included by Maven, at first it cannot show it to me, but then in the background it downloads the src JAR file and JAR documents. For my own projects, how can I create and deploy these JARs along with my binary JAR in my Maven repository?

+5
source share
2 answers

You can do this by attaching the source and javadocs as part of your project build. This cookbook has the maven configuration needed for this.

+2
source

All Articles