Bonjour,
Je viens de mettre en place le plugin de Sonar sous Hudson.
J'ai aussi installé correctement Maven car Sonar fonctionne avec Maven.
Hudson m'a généré mon fichier pom.xml (Maven) à partir du fichier build.xml (Ant) mais il y a un problème au niveau du téléchargement\installation de sonar. Lorsque je lance mon build après avoir configuré l'option sonar dans Hudson j'optiens en sortie de console :
Si quelqu'un a déjà mis en place sonar et hudson avec un build Ant ?
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 [workspace] $ mvn.bat -f pom.xml -e -B sonar:sonar "-Dsonar.jdbc.url=//localhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8" ******** ******** -Dsonar.host.url=http://localhost:8080/sonar + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sonar'. [INFO] ------------------------------------------------------------------------ [INFO] Building Projet 4 [INFO] task-segment: [sonar:sonar] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [sonar:sonar {execution: default-cli}] [INFO] Sonar host: http://localhost:8080/sonar [INFO] Sonar version: 2.0.1 Downloading: http://localhost:8080/sonar/deploy/maven/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20100614140441/sonar-core-maven-plugin-20100614140441.pom 587b downloaded (sonar-core-maven-plugin-20100614140441.pom) ....... Tout plein de Downloading ..... Downloading: http://localhost:8080/sonar/deploy/maven/org/codehaus/sonar/runtime/plugins/sonar-plugin-surefire-2.0.1/20100614140441/sonar-plugin-surefire-2.0.1-20100614140441.jar [INFO] [sonar-core:internal {execution: default-internal}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar Embedded error: Can not analyze the project No suitable driver found for //localhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8 [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) ....... Tout plein de at ..... [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23 seconds [INFO] Finished at: Mon Jun 14 14:13:54 CEST 2010 [INFO] Final Memory: 10M/25M [INFO] ------------------------------------------------------------------------ Finished: FAILURE
Si quelqu'un a une solution ?
J'ai vu sur le site de sonar que dans la dernière version de sonar celle que j'ai il gére les builds Ant.
Merci
Partager