Hi,

I've got a strange problem and I'd like to know if it's a known bug or if I
made a mistake when I configure my settings.xml or when I configure
proximity.

In fact, if I deploy a library in snapshot with maven2 and if I use this
library in a project on the same machine, then I use my new snapshot
library. So, in this case, it works correctly.

But if on another machine, I try to compile the same project, the snapshot
deployed is not downloaded (metadata files seems to be updated but not jar
files). Instead of this, the older snapshot (from the local repository) is
used.

Has anyone has got the same problem ?


Here is a part of my settings.xml :

<settings 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/settings-1.0.0.xsd";>

...
   <localRepository>C:/Dev/tools/maven/local/maven2</localRepository>

   <mirrors>
       <mirror>
           <id>corp-central-mirror</id>
           <name>central (CORP mirror)</name>
           <url> http://martinique:8181/proximity/repository</url>
           <mirrorOf>central</mirrorOf>
       </mirror>
       <mirror>
           <id>corp-central-snapshot-mirror</id>
           <name>central snapshot (CORP mirror)</name>
           <url>http://martinique:8181/proximity/repository</url>
           <mirrorOf> apache.snapshots</mirrorOf>
       </mirror>
       <mirror>
           <id>corp-codehaus-mirror</id>
           <name>codehaus (CORP mirror)</name>
           <url> http://martinique:8181/proximity/repository</url>
           <mirrorOf>codehaus</mirrorOf>
       </mirror>
       <mirror>
           <id>corp-codehaus-snapshot-mirror</id>
           <name>codehaus snapshot (CORP mirror)</name>
           <url>http://martinique:8181/proximity/repository </url>
           <mirrorOf>codehaus.snapshots</mirrorOf>
       </mirror>
   </mirrors>

   <profiles>
       <profile>
           <id>corp-repositories</id>
           <repositories>
               <repository>
                   <id>corp-repository-maven1</id>
                   <name>Repository CORP (maven1)</name>
                   <url>file:Z:/maven/repository</url>
                   <layout>legacy</layout>
                   <releases>
                       <enabled>true</enabled>
                   </releases>
                   <snapshots>
                       <enabled>false</enabled>
                   </snapshots>
               </repository>
               <repository>
                   <id>corp-repository-maven1-snapshot</id>
                   <name>Repository CORP (maven1-snapshot)</name>
                   <url>file:Z:/maven/repository</url>
                   <layout>legacy</layout>
                   <releases>
                       <enabled>false</enabled>
                   </releases>
                   <snapshots>
                       <enabled>true</enabled>
                       <updatePolicy>always</updatePolicy>
                   </snapshots>
               </repository>
               <repository>
                   <id>corp-repository-snapshot</id>
                   <name>Repository CORP snapshot</name>
                   <url>http://martinique:8181/proximity/repository</url>
                   <releases>
                       <enabled>false</enabled>
                   </releases>
                   <snapshots>
                       <enabled>true</enabled>
                       <updatePolicy>always</updatePolicy>
                   </snapshots>
               </repository>
           </repositories>
           <pluginRepositories>
               <pluginRepository>
                   <id>corp-repository-plugin</id>
                   <name>Repository CORP plugin</name>
                   <url>http://martinique:8181/proximity/repository</url>
               </pluginRepository>
               <pluginRepository>
                   <id>corp-repository-maven1</id>
                   <name>Repository CORP (maven1)</name>
                   <url>file:Z:/maven/repository</url>
                   <layout>legacy</layout>
                   <releases>
                       <enabled>true</enabled>
                   </releases>
                   <snapshots>
                       <enabled>false</enabled>
                   </snapshots>
               </pluginRepository>
               <pluginRepository>
                   <id>corp-repository-maven1-snapshot</id>
                   <name>Repository CORP (maven1-snapshot)</name>
                   <url>file:Z:/maven/repository</url>
                   <layout>legacy</layout>
                   <releases>
                       <enabled>false</enabled>
                   </releases>
                   <snapshots>
                       <enabled>true</enabled>
                       <updatePolicy>always</updatePolicy>
                   </snapshots>
               </pluginRepository>
           </pluginRepositories>
       </profile>
...
   </profiles>
...
   <activeProfiles>
       <activeProfile>corp-repositories</activeProfile>
   </activeProfiles>
...
</settings>

Reply via email to