Error adding a sonarQube 7.9.6 rules plug-in

We have created a maven project to implement custom rules for SonarQube 7.9.6
Once we generated the jar file, when I add the jar file as a plug-in (C:\sonarqube-7.9.6\extensions\plugins) and restart the SonarQube server it does not work .
SonarQube a message …Web server startup failed: File is not a plugin. Please delete it and restart: C:\sonarqube-7.9.6\extensions\plugins\MyCustomRule-1.0-SNAPSHOT.jar.
The jar plugins is generated by using the command - mvn clean package.

Here is the example plugin used in POM.xml. How should I debug the error to find the missing/error?

<plugin>
    <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
    <artifactId>sonar-packaging-maven-plugin</artifactId>
    <version>1.23.0.740</version>
    <extensions>true</extensions>
    <configuration>
      <pluginName>Custom Rules</pluginName>
      <pluginClass>com.example.sonarqube.SonarPlugin</pluginClass>
      <sonarLintSupported>true</sonarLintSupported>
      <sonarQubeMinVersion>6.7</sonarQubeMinVersion>
      <pluginDescription>Sonar Qube custom rules</pluginDescription>
    </configuration>
  </plugin>

Web log details here-

2023.11.02 20:17:19 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2023.11.02 20:17:20 INFO  web[][o.e.p.PluginsService] no modules loaded
2023.11.02 20:17:20 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2023.11.02 20:17:20 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2023.11.02 20:17:20 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2023.11.02 20:17:21 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2023.11.02 20:17:21 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 7.9.6.41879 / 38d385dda4435530bb4fdf77e0d28e31c401a976
2023.11.02 20:17:22 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://127.0.0.1:9092/sonar
2023.11.02 20:17:22 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: C:\sonarqube-7.9.6\data
2023.11.02 20:17:22 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2023.11.02 20:17:22 WARN  web[][o.s.db.dialect.H2] H2 database should be used for evaluation purpose only.
2023.11.02 20:17:22 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\sonarqube-7.9.6
2023.11.02 20:17:22 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2023.11.02 20:17:22 ERROR web[][o.s.s.p.Platform] Web server startup failed: File is not a plugin. Please delete it and restart: C:\sonarqube-7.9.6\extensions\plugins\MyCustomRule-1.0-SNAPSHOT.jar
2023.11.02 20:17:23 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
2023.11.02 20:17:24 WARN  web[][o.a.c.u.SessionIdGeneratorBase] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [142] milliseconds.
2023.11.02 20:17:24 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2023.11.02 20:17:24 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.6 → 8.9.10 → 9.9.2 → 10.2.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
HTH,
Ann