SonarQube: Building Specific Module in Multi-Module Project

Let’s assume we have a multi-module project that looks something like this:-

├── pom.xml
├── app-jar
│   └── pom.xml
├── app-ear
│   └── pom.xml
└── app-war
    └── pom.xml

To build certain module(s) within the project, we can use the sonar.skippedModules option to skip the modules we don’t need. For example, the following configuration in Jenkins will only build app-jar module in SonarQube:-

Leave a Reply

Your email address will not be published. Required fields are marked *