Bonjour,

J'ai un problème en utilisant Artifactory avec Maven2.
Je viens d'installer Artifactory. Je n'ai rien changé mise à part le fait que j'ai configuré Artifactory pour qu'il passe par mon proxy http (port 3128) (obligatoire si je veux sortir de mon réseau).

Le fichier de configuration de maven comporte :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.manex.biz</host>
      <port>3128</port>
      <nonProxyHosts>www.google.com</nonProxyHosts>
    </proxy>
  </proxies>
 
  <mirrors>
    <mirror>
       <id>artifactory</id>
       <mirrorOf>central</mirrorOf>
       <url>http://localhost:8081/artifactory/repo1</url>
       <name>Artifactory</name>
    </mirror>
  </mirrors>
</settings>
Lorsque je vais un test avec un "mvn install" j'obtiens :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - testmaven2:testmaven2:jar:1.0
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/artifactory/repo1/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' in repository central (http://repo1.maven.org/maven2)
Downloading: http://localhost:8081/artifactory/repo1/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[INFO] Unable to find resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
 
 
Project ID: org.apache.maven.plugins:maven-resources-plugin
 
Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repository: Unable to download the artifact from any repository
 
  org.apache.maven.plugins:maven-resources-plugin:pom:2.3
 
from the specified remote repositories:
  artifactory (http://localhost:8081/artifactory/repo1)
 
 for project org.apache.maven.plugins:maven-resources-plugin
 
 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Feb 24 17:04:20 CET 2010
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------
D'où vient l'erreur ?

Merci d'avance.


EDIT : Chez moi, j'ai retesté le tout et cela fonctionne parfaitement. Le problème vient certainement du proxy ou du firewall, je ne sais pas trop. Quelqu'un aurait-il une idée ?