Vote count:
0
I have a problem with sonar and "big maven project".
I use mysql as data base for sonar. Configuration : pom.xml ( specifications is in my root pom ) -properties
<sonar.language>java</sonar.language>
<sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
<sonar.skipDesign>true</sonar.skipDesign>
-pluginManagement
<plugins>
<plugin>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>4.3</version>
</plugin>
</plugins>
Error mvn clean install sonar:sonar
[INFO] [11:45:24.135] Load module settings
[ERROR] Unable to request: /batch_bootstrap/properties?project=aten:constante&dryRun=false
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] arsinoe ........................................... FAILURE [55:18 min]
...
[ERROR] Failed to execute goal org.codehaus.sonar:sonar-maven-plugin:4.3:sonar (default-cli) on project arsinoe: Unable to request: /batch_bootstrap/properties?project=aa:aa&dryRun=fals
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://ift.tt/1bGwP7h
I read this issue but it does not help me : http://ift.tt/1mjNKnl
If y check the result in my web browser :
http://localhost:9000/batch_bootstrap/properties?project=aa:aa&dryRun=false
--result
[
{
k: "sonar.profile.java",
v: "Sonar way"
},
{
k: "sonar.permission.template.default",
v: "default_template"
},
{
k: "sonar.core.id",
v: "20140527093827"
},
{
k: "sonar.core.version",
v: "4.3"
},
{
k: "sonar.core.startTime",
v: "2014-05-27T09:38:27+0200"
}
]
In the folder maven where there is a settings.xml, I add a profile
<profiles>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- Example for MySQL-->
<sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8</sonar.jdbc.url>
<sonar.jdbc.username>root</sonar.jdbc.username>
<sonar.jdbc.password></sonar.jdbc.password>
<!-- Optional URL to server. Default value is http://localhost:9000 -->
<sonar.host.url>http://localhost:9000</sonar.host.url>
</properties>
</profile>
My project have 5315 files and the build and analyse take very long time. I test with a small project contain 22 files with the same configuration and i have not encountered problems.
Regards
asked 51 secs ago
Aucun commentaire:
Enregistrer un commentaire