Posts

Showing posts with the label jacoco

Maven: pass the build even if one module fails

Image
Clash Royale CLAN TAG #URR8PPP Maven: pass the build even if one module fails I am trying to generate an aggregate Jacoco code coverage report by following the steps here. My initial maven project may contain multiple modules and I add an aggregator module aggregator to the main pom dynamically through my code. aggregator The folder structure looks somewhat like this (there can be any number of modules and sub modules in the main project): /SampleProject/ -- pom.xml -- module1/ ---- pom.xml ---- src/ -- module2/ ---- pom.xml ---- src/ -- module3/ ---- pom.xml ---- src/ -- aggregator/ ---- pom.xml This is the main pom: SampleProject/pom.xml . (here, the aggregator module is added dynamically through my code) <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</model...