Home:ALL Converter>Using a Spring boot application as dependency in Sonarqube plugin

Using a Spring boot application as dependency in Sonarqube plugin

Ask Time:2020-10-23T00:42:40         Author:Sufail Khan

Json Formatter

I have a Spring boot application (myApp) that I want to use as a dependency (library) inside a Sonarqube Plugin. I have created the non-FAT myApp.jar and added it as a dependency to the Sonarqube plugin's pom.xml file. But while running the plugin, getting this following error.

no auto configuration classes found in META-INF/spring.factories

I have also added the correct spring.factories file in resource folder of the myApp project, but the error still happening. I know it a bit complex to add a Spring boot jar inside a non-spring application, but I was successful doing that for some other project, but its not working for Sonarqube plugin; not sure if sonar-packaging-maven plugin is the one who blocking this from using spring framework in the project. The plugin api I am using is Sonarqube 7.2 and Spring boot version is 2.2.2 RELEASE.

Author:Sufail Khan,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/64486752/using-a-spring-boot-application-as-dependency-in-sonarqube-plugin
yy