Re: Downloading dependency sources

2007-10-23 Thread Paul MERLIN
Le Monday 22 October 2007 20:03:36 Siegmann Daniel, NY, vous avez écrit :
  Is there a way to tell maven to download source jars by
  default?  I didn't see anything in the pom or settings model
  to do this.  I know I can download sources using the eclipse
  plugin or the dependency plugin, but I would like to tell
  maven to always download source jars when building a project.

 The dependency:sources goal will download the source jars for all
 dependencies. You could bind this into the lifecycle so it is run
 automatically.

 Of course, this only works on a project-by-project basis.
Except if you put this directive on a global/corporate pom.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Downloading dependency sources

2007-10-22 Thread Paul Gier

Hi Everyone,
Is there a way to tell maven to download source jars by default?  I didn't see 
anything in the pom or settings model to do this.  I know I can download sources 
using the eclipse plugin or the dependency plugin, but I would like to tell 
maven to always download source jars when building a project.


Thanks!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Downloading dependency sources

2007-10-22 Thread Nicole Lacoste
You can add classifiersources/classifier to the dependency.  If you need
the classes jar too, then you should have the dependency twice in your
dependency list.

Nicole



On 10/22/07, Paul Gier [EMAIL PROTECTED] wrote:

 Hi Everyone,
 Is there a way to tell maven to download source jars by default?  I didn't
 see
 anything in the pom or settings model to do this.  I know I can download
 sources
 using the eclipse plugin or the dependency plugin, but I would like to
 tell
 maven to always download source jars when building a project.

 Thanks!


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Downloading dependency sources

2007-10-22 Thread Siegmann Daniel, NY
 Is there a way to tell maven to download source jars by 
 default?  I didn't see anything in the pom or settings model 
 to do this.  I know I can download sources using the eclipse 
 plugin or the dependency plugin, but I would like to tell 
 maven to always download source jars when building a project.

The dependency:sources goal will download the source jars for all
dependencies. You could bind this into the lifecycle so it is run
automatically.

Of course, this only works on a project-by-project basis.

~Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]