bonjour,

Je débute avec Maven couplé avec ARCHIVA et j'ai du mal à comprendre certaines choses.

Mon ARCHIVA a des "Proxy connector" déclarés sur :
http://repo1.maven.org/maven2
http://repository.codehaus.org
http://download.java.net/maven/2

Quand j'essaye de faire un
mvn -e intall sur le projet "apache-archiva-1.0-src" j'obtiens l'erreur :

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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
 
[INFO] [modello:java {execution: default}]
[INFO] outputDirectory: D:\svn_Archiva\apache-archiva-1.0-src\archiva-base\archiva-configuration\target\generated-sources\modello
[INFO] Generating current version: 1.0.0
[INFO] [modello:registry-reader {execution: default}]
[INFO] outputDirectory: D:\svn_Archiva\apache-archiva-1.0-src\archiva-base\archiva-configuration\target\generated-sources\modello
[INFO] Generating current version: 1.0.0
[INFO] [modello:registry-writer {execution: default}]
[INFO] outputDirectory: D:\svn_Archiva\apache-archiva-1.0-src\archiva-base\archiva-configuration\target\generated-sources\modello
[INFO] Generating current version: 1.0.0
[INFO] [plexus:descriptor {execution: generate}]
Downloading: http://archiva.az.fr:26050/archiva/repository/internal//commons-digester/commons-digester/1.6/commons-digester-1.6.jar
Downloading: http://archiva.az.fr:26050/archiva/repository/internal//commons-digester/commons-digester/1.6/commons-digester-1.6.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
Missing:
----------
1) commons-digester:commons-digester:jar:1.6
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
      mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file
 
  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor
yId=[id]
 
  Path to dependency:
        1) org.apache.maven.archiva:archiva-configuration:jar:1.0
        2) org.codehaus.plexus.registry:plexus-registry-commons:jar:1.0-alpha-2
        3) commons-configuration:commons-configuration:jar:1.3
        4) commons-digester:commons-digester:jar:1.6
 
----------
1 required artifact is missing.
 
for artifact:
  org.apache.maven.archiva:archiva-configuration:jar:1.0
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  org.codehaus (http://repository.codehaus.org)
 
 
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) commons-digester:commons-digester:jar:1.6
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
      mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file
 
  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor
yId=[id]
 
  Path to dependency:
        1) org.apache.maven.archiva:archiva-configuration:jar:1.0
        2) org.codehaus.plexus.registry:plexus-registry-commons:jar:1.0-alpha-2
        3) commons-configuration:commons-configuration:jar:1.3
        4) commons-digester:commons-digester:jar:1.6
 
----------
1 required artifact is missing.
 
for artifact:
  org.apache.maven.archiva:archiva-configuration:jar:1.0
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  org.codehaus (http://repository.codehaus.org)
 
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) commons-digester:commons-digester:jar:1.6
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
      mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file
 
  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor
yId=[id]
 
  Path to dependency:
        1) org.apache.maven.archiva:archiva-configuration:jar:1.0
        2) org.codehaus.plexus.registry:plexus-registry-commons:jar:1.0-alpha-2
        3) commons-configuration:commons-configuration:jar:1.3
        4) commons-digester:commons-digester:jar:1.6
 
----------
1 required artifact is missing.
 
for artifact:
  org.apache.maven.archiva:archiva-configuration:jar:1.0
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  org.codehaus (http://repository.codehaus.org)
 
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:316)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:280)
        at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1246)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:401)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Wed Dec 12 11:23:38 CET 2007
[INFO] Final Memory: 25M/45M
[INFO] ------------------------------------------------------------------------
alors même qu'il a récupéré plusieurs autres artifacts sans problème.

(backport-util-concurrent , classworlds, com.jcraft, commons-beanutils, commons-cli, commons-codec, commons-collections, commons-configuration,
commons-io, commons-jxpath, commons-lang, commons-logging, commons-net, ...).

Si dans mon settings.xml j'enlève la déclaration du miroir alors la récupération se fait sans problème à partir de http://repo1.maven.org/maven2

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
[INFO] Generating current version: 1.0.0
[INFO] [modello:registry-writer {execution: default}]
[INFO] outputDirectory: D:\svn_Archiva\apache-archiva-1.0-src\archiva-base\archiva-configuration\target\generated-sources\modello
[INFO] Generating current version: 1.0.0
[INFO] [plexus:descriptor {execution: generate}]
Downloading: http://repository.codehaus.org/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.pom
Downloading: http://repo1.maven.org/maven2/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.pom
Downloading: http://repository.codehaus.org/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
Downloading: http://repo1.maven.org/maven2/commons-digester/commons-digester/1.6/commons-digester-1.6.jar

Je pense qu'il y a une explication mais laquelle