Hi, i’m trying to make a rule in which the version of xpto.micronaut
cannot be lower than 4.9.*, however, the rule is not being applied.
SonarQube version: 10.2.1
My custom rule:
My project pom.xml:
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>xpto.micronaut</groupId>
<artifactId>microservice-bom</artifactId>
<version>4.8.0.RC</version>
</parent>
<groupId>br.com.xpto</groupId>
<artifactId>teste-pipe</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<arch.codegen.modelPackage>core.autogen.models</arch.codegen.modelPackage>
<arch.codegen.controllerPackage>core.autogen.controllers</arch.codegen.controllerPackage>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<arch.app>br.com.xpto.Application</arch.app>
</properties>
<build>
<finalName>${pom.artifactId}-${pom.version}</finalName> <!-- Code smell test -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.9.0.2155</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Please help me.