I followed instruction as you provided in your KB for creating custom java plugin however rules are being reflected and I could able to activate I created 5 extra rules and they are working in local host Community Build v26.2.0.119303 Standard Experience. However if I run sonar scanner it is giving successful message but If I see under the created project no issues are being raised, and If I try to create new test project so many issues on sonar-api version mismatches and not available in maven central and all. as it is utmost urgent to fix this issue, please respond as soon as possible. and this is my pom.xml
<?xml version="1.0" encoding="UTF-8"?>
4.0.0
com.mycompany.sonar
sonar-custom-java-rules
1.0.0
jar
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<!-- SonarQube Plugin API (resolves from Maven Central) -->
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api</artifactId>
<version>9.4.0.54424</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Compiler plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<!-- JAR plugin with manifest entries -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifestEntries>
<Plugin-Key>custom-java-rules</Plugin-Key>
<Plugin-Name>Custom Java Rules</Plugin-Name>
<Plugin-Version>1.0.0</Plugin-Version>
<Plugin-Class>com.mycompany.sonar.MyJavaRulesPlugin</Plugin-Class>
<Plugin-Description>Custom SonarQube rules for Java projects (6 rules)</Plugin-Description>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
is there any error. since I am not getting any error from it. but if I create one more rule with same pom.xml when I give mvn clean package I am gettig error there also.