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>  …

Create a New File with Maven

<plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <phase>process-classes</phase> <configuration> <target> <echo message=”javax.xml.bind.context.factory=${javax.xml.bind.context.factory}” file=”${project.build.directory}/classes/com/path/jaxb.properties”/> <echo message=”javax.xml.bind.context.factory=${javax.xml.bind.context.factory}” file=”${project.build.directory}/classes/com/path2/jaxb.properties”/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>