From 67225115393b5fd01bec7229e7f77a529fa327b1 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 10 Sep 2014 22:30:13 +0200 Subject: SONAR-5604 Fix JSON of dependency injected by old Maven plugin --- sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sonar-maven-plugin') 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()); -- cgit v1.2.3