Use the maven-release-plugin, by default it will add sources and javadoc to the released artifact (see here<http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#useReleaseProfile> ).
Regards, Stevo. On Tue, Dec 8, 2009 at 11:16 PM, Qureshi,Shahzad [Ontario] < shahzad.qure...@ec.gc.ca> wrote: > Ahh stupid me. All I've to do install or deploy it and maven automatically > uploads all the jars > > Nevermind folks :) > > > -------------------------------------------- > Shahzad Qureshi > Systems Analyst/Programmer > Applications Directorate | La direction générale des applications > Chief Information > Environment Canada > 416-739-4702 > shahzad.qure...@ec.gc.ca > > -----Original Message----- > From: Qureshi,Shahzad [Ontario] [mailto:shahzad.qure...@ec.gc.ca] > Sent: Tuesday, December 08, 2009 5:10 PM > To: Maven Users List > Subject: RE: Attaching source to artifact > > Ya but the junit folks must've put the source jar somewhere on the net for > the m2eclipse to find it (I do use m2eclipse). And how does m2eclipse know > where to find the source from? I don't see anything in junit pom to say > where to go look for the source > > > > > -------------------------------------------- > Shahzad Qureshi > Systems Analyst/Programmer > Applications Directorate | La direction générale des applications Chief > Information Environment Canada > 416-739-4702 > shahzad.qure...@ec.gc.ca > > -----Original Message----- > From: Todd Thiessen [mailto:thies...@nortel.com] > Sent: Tuesday, December 08, 2009 5:08 PM > To: Maven Users List > Subject: RE: Attaching source to artifact > > 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:shahzad.qure...@ec.gc.ca] > > 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 > > shahzad.qure...@ec.gc.ca Telephone | Téléphone 416-739-4702 Government > > of Canada | Gouvernement du Canada Website | Site Web www.ec.gc.ca > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >