You can also set this in you $HOME/.m2/settings.xml

 <properties>
    <downloadSources>true</downloadSources>
 </properties>

so that you don't have to set -D... everytime you launch eclipse:eclipse

2007/12/24, Steinar Bang <[EMAIL PROTECTED]>:
>
> >>>>> "Jeff MAURY" <[EMAIL PROTECTED]>:
>
> > I you use the maven eclipse plugin, there is an option in the
> > preference that tells maven to download source artifact as well as
> > binary artifact.  Once you've checked this flag, when Eclipse buids
> > the classpath from you pom, the source artifact will automatically be
> > attached to the referenced jar.
>
> The invocation is
> mvn eclipse:eclipse -DdownloadSources=true
>
> Here are the docs:
> http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html
>
> What "mvn eclipse:eclipse" does is to create .project and .classpath
> files (as well as some other eclipse stuff), in all projects with
> packaging jar, and others it knows about that are eclipse relevant.
>
> When invoked over a multi-project it, by default, creates project
> dependencies between the projects it generates eclipse files for.  For
> projects outside of the invocation, and jar dependencies, it creates
> .classpath references into the local maven repo.
>
> If it finds source-jars together with the jars in the local maven repo,
> it will add them to its sources.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to