Bonjour.

Je début sur maven et j'essaye d'installer le plugin sonar sur maven pour une installation maven-sonar-tomacat.

Maven est installé et je lance la commande suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar
Mais ca ne marche pas.
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
C:\>mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/codehaus/sonar/sonar-maven-plugin
/1.8/sonar-maven-plugin-1.8.pom
[WARNING] Unable to get resource 'org.codehaus.sonar:sonar-maven-plugin:pom:1.8'
 from repository central (http://repo1.maven.org/maven2): Error transferring fil
e: repo1.maven.org
Downloading: http://repo1.maven.org/maven2/org/codehaus/sonar/sonar-maven-plugin
/1.8/sonar-maven-plugin-1.8.pom
[WARNING] Unable to get resource 'org.codehaus.sonar:sonar-maven-plugin:pom:1.8'
 from repository central (http://repo1.maven.org/maven2): Error transferring fil
e: repo1.maven.org
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
GroupId: org.codehaus.sonar
ArtifactId: sonar-maven-plugin
Version: 1.8
 
Reason: Unable to download the artifact from any repository
 
  org.codehaus.sonar:sonar-maven-plugin:pom:1.8
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 
 
 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri May 22 10:28:53 CEST 2009
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------
C:\>
Je pense que cela doit venir du settings.xml de maven, mais j'arrive pas avoir ce qu'il faut faire.

Après plusieurs heure de perdu, je demande un peu d'aide, merci.