I was just reading Brett's email, and he highlights all my concerns.  I am
torn between putting in something little to make Eclipse users lives easier,
and holding off..

the specific "itch" i have to scratch is a project where the two or three
external sources we want are in a /src/externalSources directory..  Could
just get it to work with a couple properties and the assumption that .zip's
are fine.

Of course, that doesn't take into account any of the issues that Brett
raised..  Like downloading external sources and dealing with different ways
of packaging them.

I'll let it slide for a bit..

Eric

> -----Original Message-----
> From: J�rg Schaible [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 24, 2004 5:10 PM
> To: Maven Developers List; [EMAIL PROTECTED]
> Subject: RE: Adding sourcepath to Eclipse plugin..
>
>
> Eric Pugh wrote on Friday, September 24, 2004 4:07 PM:
>
> > Hi all,
> >
> > I have been looking at
> > "http://jira.codehaus.org/browse/MPECLIPSE-26 Add a property
> > to dependencies to link to source".  It would be quite easy
> > to add some sort of property to each dependency specifing the
> > name of a file that would be in your repository.  Something like:
> >
> >             <dependency>
> >                     <groupId>commons-lang</groupId>
> >                     <artifactId>commons-lang</artifactId>
> >                     <version>2.0</version>
> >
> > <url>http://jakarta.apache.org/commons/lang/</url>
> >                     <properties>
> >
> > <eclipse.src>commons-lang-src-2.0.zip</eclipse.src>
>       </properties>
> >             </dependency>
> >
> > Then the plugin would expect this file to exist in:
> >
> > $MAVEN_REPO/commons-lang/src/commons-lang/commons-lang-src-1.0.zip
> >
> > Is this change worth making?  While you would have to
> > manually download and install the jars, that way you don't
> > have to configure another Eclipse classpath variable.  Is
> > there anything I should be aware of in the next version of
> > Maven that would conflict with this approach?
>
> Yeah. You cannot assume, that the source is in the Maven repo. I
> would really love to see such a functionality in the Eclipse
> plugin, since this is the major reason I currently don't recreate
> the .classpath after initial creation. OTOH, the described
> approach fails, because:
>
> - most artifacts currently don't come with source
> - since it is currently a manual task - if you download source,
> it is normally not put into the maven repo
> - Eclipse 2.x (and therefore WSAD) cannot look into zips
> - is no good for local SNAPSHOTs
>
> What about to assume
>
> MAVEN_REPO/${groupId}/srcs/${artifactId}-src-${versionId}.jar
>
> as default, if the property is not explicitly set? And let the
> user overwrite the setting e.g. with
>
> SRC_HOME/framework-1.2/framework/src
>
> Make sense ?
>
> - J�rg


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

Reply via email to