Size limit for plugin

sonarqube
(Taodong Lu) #1

In SonarTS plugin’s pom.xml, I find the jar file MUST be smaller than 2300000 (2.3MB).

   <requireFilesSize>
           <minsize>1300000</minsize>
           <maxsize>2300000</maxsize>
   </requireFilesSize>

My jar file is 10MB+. and it works.
So my question: how many sonarqube plugin size limit is?

(Julien Henry) #2

Hi,

This configuration is specific to the SonarTS plugin. The enforcer-maven-plugin allows to put some rules like this one. Checking that the size stay within a range allows to detect packaging issues (like embedding unwanted dependencies/resources). It is not specific to SonarQube plugin development.

1 Like