The following comment has been added to this issue:

     Author: Andreas Sch�nknecht
    Created: Fri, 22 Oct 2004 7:39 AM
       Body:
Maven does contain some support for src.zip's already. When running the "dist" goals, 
a src.zip is built, named <artifactId>-<version>-src.zip.
This files is stored in the remote repository in a directory called "distributions". 
It would be nice if the Eclipse-Plugin would look there instead of the local 
repository, so I dont have to manually copy and rename them. Perhaps the 
"generate-classpath"-Goal could copy all needed src.zips from the remote repository 
distributions-directory to the local repository.
Before version 1.9 of Eclipse-Plug I worked as followed:
1. Edit the project.xml
2. Run eclipse:generate-classpath
3. Attach Sources manually in Eclipse via a Classpath variable that points to our 
remote-repository and expanding it to the src.zip in the distributions folder. 

---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPECLIPSE-48?page=comments#action_25682

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPECLIPSE-48

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPECLIPSE-48
    Summary: handling source attachments (patch)
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-eclipse-plugin
   Fix Fors:
             1.9
   Versions:
             1.9

   Assignee: David Eric Pugh
   Reporter: fabrizio giustina

    Created: Tue, 12 Oct 2004 4:36 PM
    Updated: Fri, 22 Oct 2004 7:39 AM

Description:
Actually maven repository doesn't contain source artifacts, however it would be nice 
if eclipse users could have a way to handle source for jars and have them added to 
eclipse .classpath (needed for debug and javadocs).

The attached path let users store sources in the local maven repository in the same 
way other artifacts are managed. Through the modification of the jar path the plugin 
will look for the sources file and, if existing, it will add them to the .classpath 
file.

The position of src files is controlled by 2 plugin properties: maven.eclipse.src.dir 
(directory for source artifact type) and maven.eclipse.src.extension (extension for 
files). These are temporarely managed as eclipse plugin properties till there is a 
standard maven default for them.

As an example, using the default values for these properties:
MAVEN_REPO/eclipse/jars/eclipse-ui-3.0.0.jar
will be mapped to
MAVEN_REPO/eclipse/src/eclipse-ui-3.0.0.zip

If the source zip is not available, it will not be added to the classpath file, so it 
will not cause any problem to users who don't have sources in their local repository.




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to