Hi Eric,
You need to add a <repository> configuration in an activated profile, with
<snapshots> set to true, to be able to download snapshots from the
repository.
Ex.
<settings>
<mirrors>
...
</mirrors>
<servers>
...
</servers>
<profiles>
<profile>
<id>snapshots</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<name>snapshots.repo</name>
<url>http://setekh.irit.fr/archiva/repository/mirror/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</profile>
</profiles>
</settings>
Thanks,
Deng
On Thu, Mar 29, 2012 at 7:55 PM, Eric Barboni <[email protected]> wrote:
> Hi folks,
>
>
>
> I have some trouble understanding how to configure archiva with snapshot
> repository.
>
>
>
>
>
> My archiva with a repository group configured like this:
>
> mirror (internal,snapshots,ics_snapshots,ics_internal)
>
> in the snapshots repository I have several snapshots repo including (
> netbeans-snapshot,apache.snapshots,codehaus-snaphots.)
>
> I use the following in the settings.xml:
>
> <mirror>
>
> <id>mirror</id>
>
> <name>Proxy Cache - Internal Repository</name>
>
> <url>http://setekh.irit.fr/archiva/repository/mirror/</url>
>
> <mirrorOf>*</mirrorOf>
>
> </mirror>
>
>
>
> Trying to build I have the following error:
>
>
>
> Could not find metadata
> org.netbeans.api:org-openide-loaders:SNAPSHOT/maven-metadata.xml in local
>
> Could not find metadata
> org.netbeans.api:org-openide-loaders:SNAPSHOT/maven-metadata.xml in local
>
> The POM for org.netbeans.api:org-openide-loaders:jar:SNAPSHOT is missing,
> no
> dependency information available
>
>
>
> The metadata file on the server are up to date.
>
> But no file are uploaded (no jar, no pom).
>
>
>
> Archiva log nothing wrong so I am bit lost.
>
>
>
> Any help appreciated.
>
>
>
> (Normaly I use netbeans release version, but I try things for 1.4-M3 and
> browse page)
>
>
>
> Regards
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>