This pom conduct to a fail in the download I thinks it’s the more minimal I
can get

I remove password from settings.xml rights were right

3 files in attachement (I mailing list not allow I can share with a JIRA)

-----Message d'origine-----
De : Olivier Lamy [mailto:[email protected]] 
Envoyé : vendredi 30 mars 2012 15:14
À : [email protected]
Objet : Re: Lost into archiva and snapshot policy

Hello,
Could write a sample project/pom with the dependencies and the relevant part
of your archiva.xml and share that ?
Will be more easy to test .
Thanks,
--
Olivier

2012/3/30 Eric Barboni <[email protected]>:
> Hi , thanks for the help, I try your approach but was not so successfull.
>
> I have delete all .lastUpdated stuff and hidden file to be sure.
>
> I have the following log for example with maven 3.0.4 run from a netbeans:
> <<
> Could not find metadata
> org.netbeans.api:org-openide-loaders:SNAPSHOT/maven-metadata.xml in 
> local
> (C:\Users\Didier\.m2\repository)
> Using connector WagonRepositoryConnector with priority 0 for 
> http://setekh.irit.fr/archiva/repository/mirror/ as test
> Downloading:
> http://setekh.irit.fr/archiva/repository/mirror/org/netbeans/api/org-o
> penide
> -loaders/SNAPSHOT/maven-metadata.xml
>
> Downloaded:
> http://setekh.irit.fr/archiva/repository/mirror/org/netbeans/api/org-o
> penide -loaders/SNAPSHOT/maven-metadata.xml (366 B at 0.2 KB/sec) 
> Writing resolution tracking file 
> C:\Users\Didier\.m2\repository\org\netbeans\api\org-openide-loaders\SN
> APSHOT
> \resolver-status.properties
> Using connector WagonRepositoryConnector with priority 0 for 
> http://setekh.irit.fr/archiva/repository/mirror/ as test
> Downloading:
> http://setekh.irit.fr/archiva/repository/mirror/org/netbeans/api/org-o
> penide -loaders/SNAPSHOT/org-openide-loaders-20120328.135230-1.pom
>
> Writing resolution tracking file
> C:\Users\Didier\.m2\repository\org\netbeans\api\org-openide-loaders\SN
> APSHOT \org-openide-loaders-20120328.135230-1.pom.lastUpdated
> The POM for org.netbeans.api:org-openide-loaders:jar:20120328.135230-1 
> is missing, no dependency information available
>>>
>
> Into the archiva filesystem  for the snapshots repository I have 
> metadata.xml present  but no trace of a 
> org-openide-loaders-20120328.135230-1.pom.
>
> Not log at all on archiva side :s
>
>
>
>
>
>
>
>
>
>
> -----Message d'origine-----
> De : [email protected] [mailto:[email protected]] De la part de 
> Deng Ching Envoyé : vendredi 30 mars 2012 05:22 À : 
> [email protected] Objet : Re: Lost into archiva and snapshot 
> policy
>
> 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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>



--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<version>2</version>
<repositoryScanning>

























































<fileTypes>
<fileType>
<id>artifacts</id>
<patterns>
<pattern>**/*.pom</pattern>
<pattern>**/*.jar</pattern>
<pattern>**/*.ear</pattern>
<pattern>**/*.war</pattern>
<pattern>**/*.car</pattern>
<pattern>**/*.sar</pattern>
<pattern>**/*.mar</pattern>
<pattern>**/*.rar</pattern>
<pattern>**/*.dtd</pattern>
<pattern>**/*.tld</pattern>
<pattern>**/*.tar.gz</pattern>
<pattern>**/*.tar.bz2</pattern>
<pattern>**/*.zip</pattern>
</patterns>
</fileType>
<fileType>
<id>indexable-content</id>
<patterns>
<pattern>**/*.txt</pattern>
<pattern>**/*.TXT</pattern>
<pattern>**/*.block</pattern>
<pattern>**/*.config</pattern>
<pattern>**/*.pom</pattern>
<pattern>**/*.xml</pattern>
<pattern>**/*.xsd</pattern>
<pattern>**/*.dtd</pattern>
<pattern>**/*.tld</pattern>
</patterns>
</fileType>
<fileType>
<id>auto-remove</id>
<patterns>
<pattern>**/*.bak</pattern>
<pattern>**/*~</pattern>
<pattern>**/*-</pattern>
</patterns>
</fileType>
<fileType>
<id>ignored</id>
<patterns>
<pattern>**/.htaccess</pattern>
<pattern>**/KEYS</pattern>
<pattern>**/*.rb</pattern>
<pattern>**/*.sh</pattern>
<pattern>**/.svn/**</pattern>
<pattern>**/.DAV/**</pattern>
</patterns>
</fileType>
</fileTypes>
<knownContentConsumers>
<knownContentConsumer>auto-remove</knownContentConsumer>
<knownContentConsumer>auto-rename</knownContentConsumer>
<knownContentConsumer>create-missing-checksums</knownContentConsumer>
<knownContentConsumer>index-content</knownContentConsumer>
<knownContentConsumer>metadata-updater</knownContentConsumer>
<knownContentConsumer>create-archiva-metadata</knownContentConsumer>
<knownContentConsumer>duplicate-artifacts</knownContentConsumer>
<knownContentConsumer>repository-purge</knownContentConsumer>
</knownContentConsumers>
<invalidContentConsumers>
<invalidContentConsumer>update-db-bad-content</invalidContentConsumer>
</invalidContentConsumers>
</repositoryScanning>
<databaseScanning>
<cronExpression>0 0 * * * ?</cronExpression>














<unprocessedConsumers>
<unprocessedConsumer>update-db-project</unprocessedConsumer>
</unprocessedConsumers>
<cleanupConsumers>
<cleanupConsumer>not-present-remove-db-artifact</cleanupConsumer>
<cleanupConsumer>not-present-remove-db-project</cleanupConsumer>
<cleanupConsumer>not-present-remove-indexed</cleanupConsumer>
</cleanupConsumers>
</databaseScanning>
<organisationInfo>
<name>ICS</name>
<url>http://www.irit.fr/ICS</url>
<logoLocation/>
</organisationInfo>
<repositoryGroups>
<repositoryGroup>
<id>mirror</id>
<repositories>
<repository>internal</repository>
<repository>snapshots</repository>
<repository>ics_snapshots</repository>
<repository>ics_internal</repository>
</repositories>
</repositoryGroup>
<repositoryGroup>
<id>ics</id>
<repositories>
<repository>ics_internal</repository>
<repository>ics_snapshots</repository>
</repositories>
</repositoryGroup>
</repositoryGroups>
<managedRepositories>
<managedRepository>
<location>/opt/data/repositories/internal/</location>
<daysOlder>30</daysOlder>
<id>internal</id>
<name>Archiva Managed Internal Repository</name>
<indexDir/>
</managedRepository>
<managedRepository>
<location>/opt/data/repositories/ics/internal</location>
<id>ics_internal</id>
<name>ICS internal repository</name>
<indexDir/>
</managedRepository>
<managedRepository>
<location>/opt/data/repositories/ics/snapshots</location>
<releases>false</releases>
<snapshots>true</snapshots>
<id>ics_snapshots</id>
<name>ICS snapshots repository</name>
<indexDir/>
</managedRepository>
<managedRepository>
<location>/opt/data/repositories/snapshots</location>
<releases>false</releases>
<snapshots>true</snapshots>
<retentionCount>20</retentionCount>
<id>snapshots</id>
<name>Archiva Managed Snapshot Repository</name>
<indexDir/>
</managedRepository>
</managedRepositories>
<remoteRepositories>
<remoteRepository>
<url>http://repo1.maven.org/maven2</url>
<id>central</id>
<name>Central Repository</name>
</remoteRepository>
<remoteRepository>
<url>http://download.java.net/maven/2/</url>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven 2</name>
</remoteRepository>
<remoteRepository>
<url>http://b2s-repo.googlecode.com/svn/trunk/mvn-repo</url>
<id>b2s-repo</id>
<name>b2s-repo</name>
</remoteRepository>
<remoteRepository>
<url>http://java.freehep.org/maven2</url>
<id>freehep</id>
<name>freehep</name>
</remoteRepository>
<remoteRepository>
<url>http://slick.cokeandcode.com/mavenrepo/</url>
<id>slickrepo</id>
<name>slickrepo</name>
</remoteRepository>
<remoteRepository>
<url>http://repository.apache.org/snapshots/</url>
<id>apache.snapshots</id>
<name>Maven Plugin Snapshots</name>
</remoteRepository>
<remoteRepository>
<url>http://nexus.codehaus.org/snapshots/</url>
<remoteIndexUrl>.index</remoteIndexUrl>
<remoteDownloadNetworkProxyId/>
<id>codehaus-snapshots</id>
<name>Codehaus Snapshots</name>
<indexDir/>
</remoteRepository>
<remoteRepository>
<url>http://page.mi.fu-berlin.de/wabu/maven/</url>
<remoteIndexUrl>.index</remoteIndexUrl>
<remoteDownloadNetworkProxyId/>
<id>inf.fu-berlin.de</id>
<name>fu-m2-repo</name>
<indexDir/>
</remoteRepository>
<remoteRepository>
<url>http://bits.netbeans.org/netbeans/trunk/maven-snapshot/</url>
<downloadRemoteIndex>true</downloadRemoteIndex>
<remoteIndexUrl/>
<remoteDownloadNetworkProxyId>proxy_irit</remoteDownloadNetworkProxyId>
<id>netbeans-snapshot</id>
<name>NetBeans Snapshots</name>
<indexDir/>
</remoteRepository>
<remoteRepository>
<url>http://bits.netbeans.org/maven2/</url>
<remoteDownloadNetworkProxyId>proxy_irit</remoteDownloadNetworkProxyId>
<id>netbeans</id>
<name>NetBeans</name>
</remoteRepository>
</remoteRepositories>
<proxyConnectors>
<proxyConnector>
<order>3</order>
<sourceRepoId>internal</sourceRepoId>
<targetRepoId>netbeans</targetRepoId>
<proxyId>proxy_irit</proxyId>
<whiteListPatterns>
<whiteListPattern>**/*</whiteListPattern>
</whiteListPatterns>
<policies>
<releases>always</releases>
<checksum>fail</checksum>
<snapshots>never</snapshots>
<cache-failures>no</cache-failures>
</policies>
</proxyConnector>
<proxyConnector>
<order>4</order>
<sourceRepoId>internal</sourceRepoId>
<targetRepoId>slickrepo</targetRepoId>
<proxyId>proxy_irit</proxyId>
<policies>
<releases>always</releases>
<checksum>fail</checksum>
<snapshots>always</snapshots>
<cache-failures>no</cache-failures>
</policies>
</proxyConnector>
<proxyConnector>
<order>5</order>
<sourceRepoId>internal</sourceRepoId>
<targetRepoId>b2s-repo</targetRepoId>
<proxyId>proxy_irit</proxyId>
<policies>
<releases>always</releases>
<checksum>fail</checksum>
<snapshots>always</snapshots>
<cache-failures>no</cache-failures>
</policies>
</proxyConnector>
<proxyConnector>
<order>6</order>
<sourceRepoId>internal</sourceRepoId>
<targetRepoId>freehep</targetRepoId>
<proxyId>proxy_irit</proxyId>
<policies>
<releases>always</releases>
<checksum>fail</checksum>
<snapshots>always</snapshots>
<cache-failures>no</cache-failures>
</policies>
</proxyConnector>
<proxyConnector>
<order>4</order>
<sourceRepoId>snapshots</sourceRepoId>
<targetRepoId>inf.fu-berlin.de</targetRepoId>
<proxyId>proxy_irit</proxyId>
<policies>
<releases>always</releases>
<checksum>fail</checksum>
<snapshots>always</snapshots>
<cache-failures>no</cache-failures>
</policies>
</proxyConnector>
<proxyConnector>
<order>1</order>
<sourceRepoId>snapshots</sourceRepoId>
<targetRepoId>apache.snapshots</targetRepoId>
<proxyId>proxy_irit</proxyId>
<policies>
<cache-failures>no</cache-failures>
<releases>always</releases>
<checksum>fail</checksum>
<snapshots>always</snapshots>
</policies>
</proxyConnector>
<proxyConnector>
<order>2</order>
<sourceRepoId>snapshots</sourceRepoId>
<targetRepoId>codehaus-snapshots</targetRepoId>
<proxyId>proxy_irit</proxyId>
<policies>
<cache-failures>no</cache-failures>
<releases>always</releases>
<checksum>fail</checksum>
<snapshots>always</snapshots>
</policies>
</proxyConnector>
<proxyConnector>
<order>2</order>
<sourceRepoId>internal</sourceRepoId>
<targetRepoId>maven2-repository.dev.java.net</targetRepoId>
<proxyId>proxy_irit</proxyId>
<whiteListPatterns>
<whiteListPattern>javax/**</whiteListPattern>
<whiteListPattern>org/jvnet/**</whiteListPattern>
<whiteListPattern>com/sun/**</whiteListPattern>
</whiteListPatterns>
<policies>
<cache-failures>yes</cache-failures>
<releases>once</releases>
<checksum>fix</checksum>
<snapshots>never</snapshots>
</policies>
</proxyConnector>
<proxyConnector>
<order>1</order>
<sourceRepoId>internal</sourceRepoId>
<targetRepoId>central</targetRepoId>
<proxyId>proxy_irit</proxyId>
<whiteListPatterns>
<whiteListPattern>**/*</whiteListPattern>
</whiteListPatterns>
<policies>
<cache-failures>no</cache-failures>
<releases>always</releases>
<checksum>fix</checksum>
<snapshots>never</snapshots>
</policies>
</proxyConnector>
<proxyConnector>
<sourceRepoId>snapshots</sourceRepoId>
<targetRepoId>netbeans-snapshot</targetRepoId>
<proxyId>proxy_irit</proxyId>
<policies>
<propagate-errors-on-update>always</propagate-errors-on-update>
<cache-failures>no</cache-failures>
<releases>always</releases>
<propagate-errors>stop</propagate-errors>
<snapshots>always</snapshots>
<checksum>fix</checksum>
</policies>
</proxyConnector>
</proxyConnectors>
<networkProxies>
<networkProxy>
<id>proxy_irit</id>
<host>proxy.irit.fr</host>
<port>8001</port>
<username/>
<password/>
</networkProxy>
</networkProxies>
<legacyArtifactPaths>
<legacyArtifactPath>
<path>jaxen/jars/jaxen-1.0-FCS-full.jar</path>
<artifact>jaxen:jaxen:1.0-FCS:full:jar</artifact>
</legacyArtifactPath>
</legacyArtifactPaths>
</configuration>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <modelVersion>4.0.0</modelVersion>

    <groupId>fr.irit.sample</groupId>
    <artifactId>mavenproject2</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>nbm</packaging>

    <name>mavenproject2</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-api-annotations-common</artifactId>
            <version>SNAPSHOT</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>nbm-maven-plugin</artifactId>
                <version>3.7</version>
                <extensions>true</extensions>
            </plugin>

            <plugin>
                <!-- NetBeans 6.9+ requires JDK 6 -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.1</version>
                <configuration>
                    <!-- to have the jar plugin pickup the nbm generated manifest -->
                    <useDefaultManifestFile>true</useDefaultManifestFile>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
<settings xmlns:profile="http://maven.apache.org/SETTINGS/1.0.0";>
    <offline>false</offline>
    <proxies>
        <proxy>
            <active>true</active>
            <protocol>http</protocol>
            <host>proxy.irit.fr</host>
            <port>8001</port>
            <nonProxyHosts>*.irit.fr|141.115.66.*|localhost|www.irit.fr</nonProxyHosts>
        </proxy>
    </proxies> 
    
    <servers>
        <server>
            <id>petshop.website</id>
            <username>icsweb</username>
        </server>
        <server>
            <id>ftp.ics</id>
            <username>icsweb</username>
        </server>
        <server>
            <id>iritdav</id>
            <username>ics</username>
            <filePermissions>777</filePermissions>
            <directoryPermissions>777</directoryPermissions>     
        </server>
        <server>
            <id>internal</id>
            <username>test</username>
        </server>
        <server>
            <id>snapshots</id>
            <username>test</username>
        </server> 
        <server>
            <id>mirror</id>
            <username>test</username>
        </server>
        <server>
            <id>projectics</id>
            <username>test</username>
        </server>
        
    </servers>
    <mirrors>
  
        <mirror>
            <id>mirror</id>
            <name>Proxy Cache - Internal Repository</name>
            <url>http://setekh.irit.fr/archiva/repository/mirror/</url>
            <mirrorOf>*</mirrorOf>
        </mirror>
       
 
    </mirrors>
    <profiles>
        <profile>
            <id>netbeans-ide</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <!-- fail also with tthis<repositories>
                <repository>
                    <id>snapshots</id>
                    <url>http://setekh.irit.fr/archiva/repository/mirror/</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>-->
            <properties>
                <netbeans.installation>C:\Program Files (x86)\NetBeans 7.1</netbeans.installation>
            </properties>
           
        </profile>
        
    </profiles>
</settings>

Reply via email to