No bug - Move sonar profile to build module
Signed-off-by: Dawid Pakuła <zulus@w3des.net>
diff --git a/build/pom.xml b/build/pom.xml
index 895146a..7dba26d 100644
--- a/build/pom.xml
+++ b/build/pom.xml
@@ -30,6 +30,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<eclipse-repository-url>http://download.eclipse.org/releases/luna/</eclipse-repository-url>
<pack200>${java.home}/bin</pack200>
+ <tycho.testArgLine></tycho.testArgLine>
</properties>
<repositories>
@@ -129,7 +130,7 @@
</plugin>
</plugins>
</build>
-
+
<profiles>
<profile>
<id>sign</id>
@@ -205,6 +206,52 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>sonar</id>
+ <properties>
+ <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
+ <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+ <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
+ <sonar.java.source>1.6</sonar.java.source>
+ <maven.test.failure.ignore>true</maven.test.failure.ignore>
+ <maven.test.error.ignore>true</maven.test.error.ignore>
+ <tycho.testArgLine>${jacoco.argLine}</tycho.testArgLine>
+ </properties>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>2.6</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.7.5.201505241946</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <id>pre-test</id>
+ <configuration>
+ <destFile>${sonar.jacoco.reportPath}</destFile>
+ <includes>
+ <include>org.eclipse.dltk.*</include>
+ </includes>
+ <propertyName>jacoco.argLine</propertyName>
+ <append>true</append>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
diff --git a/pom.xml b/pom.xml
index cdf02e3..afb0309 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,8 +36,6 @@
<sonar.java.source>1.6</sonar.java.source>
<maven.test.failure.ignore>true</maven.test.failure.ignore>
<maven.test.error.ignore>true</maven.test.error.ignore>
- <os-jvm-flags>${jacoco.argLine}</os-jvm-flags>
- <tycho.testArgLine>${jacoco.argLine}</tycho.testArgLine>
</properties>
<build>
<pluginManagement>