This should do the same thing:
  mvn dependency:sources
  mvn eclipse:eclipse

Not every project publishes its source unfortunately. Have a look in the
maven repo dir for the jars you depend on (eg
http://rep1.maven.org/maven2/...), and see if there is a -sources.jar
file next to the binary jar.

Regards,
Simon

On Sat, 2008-02-09 at 13:22 +0100, nicolas de loof wrote:
> This works fine for me
> (I've set <properties><downloadSource>true</downloadSource> in my
> settings.xml)
> 
> Many artifacts in maven "central" repo don't have the expected source
> bundles.
> 
> One option is to build them yourself from source distribution, and even
> better propose for upload (http://jira.codehaus.org/browse/MAVENUPLOAD)
> 
> Another option is to contact the developer list and ask them to publish
> themself the required -sources.jar. This is automatically created by maven
> during release (if predefine profile is used), so recent maven2-based-builds
> should all have thoses sources.jars.
> 
> I'm myself in discution on apache commons dev list to publish sources for
> archived commons-*
> 
> Nico.
> 
> 
> 
> 2008/2/9, Jan Torben Heuer <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > I don't know if I'm doing something wrong, but shouldn't
> >
> > mvn eclipse:eclipse -DdownloadSources=true
> >
> > download and reference the sources in eclipse?
> >
> >
> > Are the sources normally available for libs in the central repository? I
> > mean for example log4j, httpunit, xmlbeans...
> >
> >
> >
> > Does it work for someone here?
> >
> > Jan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


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

Reply via email to