# Basic Error in SonarQube Plugin

**URL:** <https://community.sonarsource.com/t/basic-error-in-sonarqube-plugin/23057>\
**Category:** Writing rules\
**Tags:** java\
**Created:** [April 14, 2020, 8:48pm UTC](https://community.sonarsource.com/t/basic-error-in-sonarqube-plugin/23057 "2020-04-14T20:48:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucasVilelaDev](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/lucasvileladev/32/10915_2.png) [@LucasVilelaDev](https://community.sonarsource.com/u/LucasVilelaDev)\
**Post date:** [April 14, 2020, 8:48pm UTC](https://community.sonarsource.com/t/basic-error-in-sonarqube-plugin/23057/1 "2020-04-14T20:48:11Z")

</div>

Greetings,  
I’m trying to use a custom Java template plugin ([https://github.com/SonarSource/sonar-custom-rules-examples/tree/master](https://github.com/SonarSource/sonar-custom-rules-examples/tree/master)) without any changes in my SonarQube. When i add the plugin, the SonarQube application drop, without leaving any erro message. What i did is:  
1- download the project  
2- run the command “mvn clean install”  
3- past the created .jar in extesion\plugin

What did I do wrong?

obs: For the documentation, and the fast reading on the solution, I’ve understand that already exist other rules, and this way it should already work.

Thanks!

---

<div class="post-metadata">

**Author:** ![Antoine](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antoine/32/77940_2.png) [@Antoine](https://community.sonarsource.com/u/Antoine)\
**Post date:** [April 20, 2020, 6:35am UTC](https://community.sonarsource.com/t/basic-error-in-sonarqube-plugin/23057/2 "2020-04-20T06:35:56Z")

</div>

Hello @LucasVilelaDev,

Actually [sonar-custom-rules-examples](https://github.com/SonarSource/sonar-custom-rules-examples/tree/master) contains 6 plugins example, for 6 different languages.  
Which one did you try?

---

<div class="post-metadata">

**Author:** ![LucasVilelaDev](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/lucasvileladev/32/10915_2.png) [@LucasVilelaDev](https://community.sonarsource.com/u/LucasVilelaDev)\
**Post date:** [April 20, 2020, 11:44am UTC](https://community.sonarsource.com/t/basic-error-in-sonarqube-plugin/23057/3 "2020-04-20T11:44:03Z")

</div>

Hello, Antoine.

I try on java plugin, for the version 8.2.0.32929.

Thanks!!

---

<div class="post-metadata">

**Author:** ![Michael](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/michael/32/43_2.png) [@Michael](https://community.sonarsource.com/u/Michael)\
**Post date:** [April 20, 2020, 12:38pm UTC](https://community.sonarsource.com/t/basic-error-in-sonarqube-plugin/23057/4 "2020-04-20T12:38:25Z")

</div>

The custom-rules-examples plugin for java relies on latest release of our Java Analyzer.

> <https://github.com/SonarSource/sonar-custom-rules-examples/blob/master/java-custom-rules/pom.xml#L20>

Make sure that you also have version 6.3 (latest release) of the SonarSource Analyzer for Java installed on your SQ instance. Check it out here if you can not get it directly from your SQ admin panel: [https://docs.sonarqube.org/latest/analysis/languages/java/](https://docs.sonarqube.org/latest/analysis/languages/java/)

Regards,  
Michael
