If you use the m2eclipse plugin, it does all this automagically ;-). It's awesome to be able to step through the source of mockito or log4j without having to manually download a single thing ;-).
--- Todd Thiessen > -----Original Message----- > From: Qureshi,Shahzad [Ontario] [mailto:[email protected]] > Sent: Tuesday, December 08, 2009 4:58 PM > To: Maven Users List > Subject: Attaching source to artifact > > Hi all, > > One of our the modules that we've is a library which is used > by other projects. So I've created the jar and the source jar > for this module using the instructions here: > http://maven.apache.org/plugin-developers/cookbook/attach-sour > ce-javadoc-artifacts.html > > So now that I've the source jar, what do I do now? I can > deploy the main artifact but where does the source go? I want > the developers to have the ability like junit dependency > provides where I can simply click on "download source" and I > automagically get the source jar for junit from the net. > > How do I implement that functionality? I've the source jar > and I've the main artifact jar > > Test-1.0.jar > Test-1.0-sources.jar > > thanks > > -------------------------------------------- > Shahzad Qureshi > Systems Analyst/Programmer > Applications Directorate | La direction générale des > applications Chief Information Officer Branch | Direction > générale du dirigeant principal de l'information Environment > Canada | Environnement Canada [email protected] > Telephone | Téléphone 416-739-4702 Government of Canada | > Gouvernement du Canada Website | Site Web www.ec.gc.ca > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
