diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-09-10 22:30:13 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-09-10 22:32:02 +0200 |
commit | 67225115393b5fd01bec7229e7f77a529fa327b1 (patch) | |
tree | 8089f530dc3455fe71b2c70e7f39291832dfa30d | |
parent | a1835219b3b521ce46e481f222734360c68dc221 (diff) | |
download | sonarqube-67225115393b5fd01bec7229e7f77a529fa327b1.tar.gz sonarqube-67225115393b5fd01bec7229e7f77a529fa327b1.zip |
SONAR-5604 Fix JSON of dependency injected by old Maven plugin
-rw-r--r-- | sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java index b3bbc9bb70b..f17d1bf1b28 100644 --- a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java +++ b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java @@ -181,8 +181,7 @@ public final class SonarMojo extends AbstractMojo { .mask("org.sonar.") // Include everything else .unmask(""); - runner.addExtensions(session, getLog(), lifecycleExecutor, artifactFactory, localRepository, artifactMetadataSource, artifactCollector, - dependencyTreeBuilder, projectBuilder); + runner.addExtensions(session, getLog(), lifecycleExecutor, projectBuilder); if (getLog().isDebugEnabled()) { runner.setProperty("sonar.verbose", "true"); } @@ -300,9 +299,9 @@ public final class SonarMojo extends AbstractMojo { private void serializeDep(StringBuilder json, Dependency dependency) { json.append("{"); - json.append("\"k\":"); + json.append("\"k\":\""); json.append(dependency.key()); - json.append(",\"v\":\""); + json.append("\",\"v\":\""); json.append(dependency.version()); json.append("\",\"s\":\""); json.append(dependency.scope()); |