Bonjour,
Je souhaite utiliser maven 2.2.1 et hudson 1.373 couplé avec sonar 2.2 (jdk 1.6). Je dois travailler sur un réseau indépendant du net (donc impossible d'atteindre les repositories publiques). Pour avoir le nécessaire pour maven sur ce réseau, j'utilise nexus 1.6.0.
J'ai actuellement un problème pour installer le plugin sonar(commande mvn sonar:sonar) sur le réseau indépendant.
J'ai installé sonar sur deux pcs, un connecté au net qui me permet de récupérer les éléments du repository, et l'autre sur le réseau indépendant pour pouvoir travailler. Je fais mvn sonar:sonar sur le premier (tout se passe bien), je récupère les fichiers dans mon repository local et je le transfère sur nexus. Sur la machine ou je dois installer le plugin je fais ensuite un mvn sonar:sonar et là j'obtiens le message suivant :
Après quelques recherches, j'ai fait la manipulation consistant à supprimer le répertoire org/codehaus/mojo sur le repository nexus et local du client du reseau indépendant mais rien n'y fait.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sonar'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-sonar-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second
Je tourne en rond entre les réinstall et les tests de solution trouvés sur le net (et sur développez). Si quelqu'un a une idée ou un lien à proposer.
Pour info voici ce que me donne la commande sur le pc connecté à internet, avec mvn clean install sonar:sonar
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 [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sonar'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.codehaus.mojo:sonar-maven-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/sonar-maven-plugin/1.0-beta-1/sonar-maven-plugin-1.0-beta-1.pom Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/mojo-parent/20/mojo-parent-20.pom Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/sonar-maven-plugin/1.0-beta-1/sonar-maven-plugin-1.0-beta-1.jar [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven-parent-7.pom Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot execute mojo: clean. It requires a project with an existing pom.xml, but the build is not using one. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11 seconds [INFO] Finished at: Fri Aug 27 11:52:11 CEST 2010 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------
Partager