Just found it out by myself..

The dependency plugin creates in target a folder called 
"dependency-maven-plugin-markers" which acts like a cache. To make sure all 
available sources will be checked & downloaded again you have to clean the 
cache with the maven clean.

mvn -U clean dependency:sources -DoverWriteSnapshots=true 
-DoverWriteReleases=true

solved the problem :-)


-----Ursprüngliche Nachricht-----
Von: Moser, Christian [mailto:c...@metrohm.com] 
Gesendet: Dienstag, 30. November 2010 09:38
An: Maven Users List
Betreff: AW: maven 3.0.1 doesn't download sources

Thanks for your response. Just tested it with maven 2.2.1 and maven 3.0, I 
doesn't work neither.
Do you think it's a problem with the dependency-plugin? I wonder what's the 
criteria is to skip files when using the goal :sources. How does the plugin 
know, if it should skip or not?

-----Ursprüngliche Nachricht-----
Von: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] Im Auftrag 
von Anders Hammar
Gesendet: Dienstag, 30. November 2010 09:26
An: Maven Users List
Betreff: Re: maven 3.0.1 doesn't download sources

Are you saying this worked with Maven 3.0?
If not, it could be a problem with either Maven or Artifactory. However, I
do vaguely recall seeing a ticket regarding something similar to this.
Couldn't find it in jira when I searched though.

/Anders

On Tue, Nov 30, 2010 at 08:25, Moser, Christian <c...@metrohm.com> wrote:

> Hi
>
>
>
> Maven 3.0.1 and artifactory 2.3.1 with unique (non-unique won't work)
> snapshot repository doesn't UPDATE sources from the repository. Calling
> mvn -U dependency:sources with an empty local repository will resolve
> all sources correctly. After a newer artifact was deployed and the maven
> was called again with mvn -U dependency:sources, the pom and .jar
> archive was updated, but the dependency plugin skips to download the
> newer source files. Why does the plugin refuses to download?
>
> We're using the default -sources classifier.
>
>
>
> Regards,
>
> Christian
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to