On 20-Feb-09, at 4:05 AM, Olivier THIERRY wrote:

Hi,

I try to user mirror-any setup with Maven 2.0.10 and Artifactory 2.0.2
but it doesn't work with snapshots. Any time I have a dependency to a
snapshot artifact in a POM file, it fails at resolving it.


Here's a setup that works for Nexus (but generally applies):

http://www.sonatype.com/books/nexus-book/reference/maven-sect-snapshot-repo.html

For example :

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.andromda.maven.plugins
ArtifactId: andromdapp-maven-plugin
Version: 3.4-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.andromda.maven.plugins:andromdapp-maven-plugin:pom:3.4-SNAPSHOT

from the specified remote repositories:
 artifactory (http://intrabe:8080/artifactory/repo)

But I can see this artifact using Artifactory web client, so it exists !

I configured mirror-any this way in Maven settings.xml file :

   <mirror>
     <id>artifactory</id>
     <mirrorOf>*</mirrorOf>
     <name>Horoquartz Repository</name>
     <url>http://intrabe:8080/artifactory/repo</url>
   </mirror>

I see nothing in Artifactory logs, so it looks like no request is sent
to Artifactory.

Anyone has an idea what I did wrong ?

Regards,

Olivier

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
http://twitter.com/jvanzyl
----------------------------------------------------------

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

 -- Buddha


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to