Using a Spring boot application as dependency in Sonarqube plugin

479 views Asked by At

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.

0

There are 0 answers