Atlassian Bamboo Maven Sonar Configuration

 

<?xml version=”1.0″ encoding=”UTF-8″?>

<project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd”>

<modelVersion>4.0.0</modelVersion>

 

<artifactId>sonar</artifactId>

<packaging>pom</packaging>

<name>Sonar</name>

<version>4.16-SNAPSHOT</version>

 

<properties>

<sonar-maven-plugin.version>3.0.2</sonar-maven-plugin.version>

</properties>

 

<modules>

<module>../parent/project1</module>

<module>../parent/project2</module>

</modules>

 

<build>

<pluginManagement>

<plugins>

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>sonar-maven-plugin</artifactId>

<version>${sonar-maven-plugin.version}</version>

</plugin>

</plugins>

</pluginManagement>

<plugins>

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>sonar-maven-plugin</artifactId>

<version>${sonar-maven-plugin.version}</version>

</plugin>

</plugins>

</build>

 

</project>