Not downloading newer version of xxx-SNAPSHOT-sources.jar
---------------------------------------------------------

         Key: MNGECLIPSE-94
         URL: http://jira.codehaus.org/browse/MNGECLIPSE-94
     Project: Maven 2.x Extension for Eclipse
        Type: Bug

    Versions: 0.0.5    
    Reporter: Federico
 Assigned to: Eugene Kuleshov 
    Priority: Minor


We are able to have java sources automatically downloaded and associated with 
related class files in Eclipse.

We only have a problem when working with SNAPSHOT projects and if another 
developer deploy on the server a new release of the jar and its 
java.sources.jar file.
We have selected (enabled) the "Update Snapshots" and "Download Artifact 
Sources" options 

On the Maven Repository we see the newer xxx-0.5-SNAPSHOT.jar, its POM and its 
sources.jar files as following:

xxx-0.5-20060327.145000-13-sources.jar              27-Mar-2006 16:49     4k  
xxx-0.5-20060327.145000-13-sources.jar.md5    27-Mar-2006 16:49     1k  
xxx-0.5-20060327.145000-13-sources.jar.sha1    27-Mar-2006 16:49     1k  
xxx-0.5-20060327.145000-13.jar                              27-Mar-2006 16:49   
 21k  
xxx-0.5-20060327.145000-13.jar.md5                     27-Mar-2006 16:49     1k 
 
xxx-0.5-20060327.145000-13.jar.sha1                   27-Mar-2006 16:49     1k  
xxx-0.5-20060327.145000-13.pom                          27-Mar-2006 16:49     
2k  
xxx-0.5-20060327.145000-13.pom.md5                27-Mar-2006 16:49     1k  
xxx-0.5-20060327.145000-13.pom.sha1               27-Mar-2006 16:49     1k  

if I edit and save the POM with a dependency to xxx-0.5-SNAPSHOT I receive the 
following files in my local repository:
xxx-0.5-SNAPSHOT-sources.jar
xxx-0.5-SNAPSHOT.jar 
xxx-0.5-SNAPSHOT.pom

but if I already have those files (from an older SNAPSHOT release) m2eclipse 
only updates the following files:
xxx-0.5-SNAPSHOT.jar 
xxx-0.5-SNAPSHOT.pom

if I then delete the xxx-0.5-SNAPSHOT-sources.jar file and edit and save again 
the pom.xml the new sources are downloaded.

is there any plugin in maven itself for downloading java sources from the repo 
and install them locally? we could use it as a workaround

compliments for the nice work you are doing,
thanks in advance,
Federico



-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to