Hi i tried to configure maven build breaker within maven itself but I dont have any luck. Below is my configuration in pom.xml
<build>
<pluginManagement>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<configuration>
<systemPropertyVariables>
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>default-instrument</id>
<goals>
<goal>instrument</goal>
</goals>
</execution>
<execution>
<id>default-restore-instrumented-classes</id>
<goals>
<goal>restore-instrumented-classes</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.3.0.603</version>
<executions>
<execution>
<id>sonar</id>
<phase>prepare-package</phase>
<goals>
<goal>sonar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.sgoertzen</groupId>
<artifactId>sonar-break-maven-plugin</artifactId>
<version>1.2.5</version>
<configuration>
<sonarServer>sonarurl</server>
<sonarLookBackSeconds>60</sonarLookBackSeconds>
<waitForProcessingSeconds>600</waitForProcessingSeconds>
</configuration>
<executions>
<execution>
<id>sonar-break</id>
<phase>verify</phase>
<goals>
<goal>sonar-break</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
this is added to my pom.xml. But, when I do mvn clean install it is skipping analysis. when I do mvn sonar:sonar it throws up an error [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project class-server-parent: Unable to load component class org.sonar.batch.scan.Immuta
bleProjectReactor: Duplicate module key in reactor: xxx:xxxxx]. can some one please help me out how to configure build breaker with in maven.
thanks..