J'ai un peut de mal avec ces deux notions : Mirror / Proxy

Je voudrais utiliser ARCHIVA pour la gestion d'un repository d'entreprise qui s'auto-alimente à partir d'un repository extérieur (http://repository.codehaus.org ou un autre) au fure et à mesure du build des développeurs.

C'est à dire :
1) Cherche sur répo local si trouve pas alors
2) Cherche sur repo entreprise si trouve pas alors
3) cherche sur repo Internet si trouve alors
4) Ajout dans repo entreprise
5) Ajout dans repo local.


Pour le moment je déclarais un "mirror" du repository "central" dans le settings.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
  <mirrors>
    <mirror>
      <mirrorOf>central</mirrorOf>
      <name>Central Mirror Repository</name>
      <url>http://toto:8080/archiva/repository/mon-repo/</url>
      <id>central-mirror</id>
    </mirror>
</mirrors>
Je pensais que ça suffisait http://www.developpez.net/forums/sho....php?t=309489).


Mais quand je lance un mvn install j'obtiens pour jetty par exemple :


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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
[INFO] [plexus:descriptor {execution: generate}]
Downloading: http://repository.codehaus.org/jetty/org.mortbay.jetty/5.1.10/org.mortbay.jetty-5.1.10.jar
Downloading: http://toto:8080/archiva/repository/mon-repo//jetty/org.mortbay.jetty/5.1.10/org.mortbay.jetty-5.1.10.jar
Downloading: http://toto:8080/archiva/repository/mon-repo//jetty/org.mortbay.jetty/5.1.10/org.mortbay.jetty-5.1.10.jar
Downloading: http://repository.codehaus.org/jetty/org.mortbay.jetty.plus/5.1.10/org.mortbay.jetty.plus-5.1.10.jar
Downloading: http://toto:8080/archiva/repository/mon-repo//jetty/org.mortbay.jetty.plus/5.1.10/org.mortbay.jetty.plus-5.1.10.jar
Downloading: http://toto:8080/archiva/repository/mon-repo//jetty/org.mortbay.jetty.plus/5.1.10/org.mortbay.jetty.plus-5.1.10.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
Missing:
----------
1) jetty:org.mortbay.jetty:jar:5.1.10
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
      mvn install:install-file -DgroupId=jetty -DartifactId=org.mortbay.jetty \
          -Dversion=5.1.10 -Dpackaging=jar -Dfile=/path/to/file
 
  Path to dependency:
        1) org.apache.maven.archiva:archiva-plexus-runtime:jar:1.0-alpha-2
        2) org.codehaus.plexus:plexus-appserver-service-jetty:plexus-service:2.0
-alpha-8
        3) jetty:org.mortbay.jetty:jar:5.1.10
 
2) jetty:org.mortbay.jetty.plus:jar:5.1.10
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
      mvn install:install-file -DgroupId=jetty -DartifactId=org.mortbay.jetty.pl
us \
          -Dversion=5.1.10 -Dpackaging=jar -Dfile=/path/to/file
 
  Path to dependency:
        1) org.apache.maven.archiva:archiva-plexus-runtime:jar:1.0-alpha-2
        2) org.codehaus.plexus:plexus-appserver-service-jetty:plexus-service:2.0
-alpha-8
        3) jetty:org.mortbay.jetty.plus:jar:5.1.10
 
----------
2 required artifacts are missing.
 
for artifact:
  org.apache.maven.archiva:archiva-plexus-runtime:jar:1.0-alpha-2
 
from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  mon-repo (http://toto:8080/archiva/repository/mon-repo/)


De plus comment faut il que je passe mon login/pwd pour que ARCHIVA puisse sortir sur internet ?