I’m running a Docker with SonarQube 6.2-alpine and I’m facing some issues regarding getting the correct dependency.
Explaining the problem:
My application uses the dependency spring-data-commons version 1.13.0.RELEASE in order to be able to use the PageRequest class, but if I have a newer dependency from this package, for instance, 2.0.10.RELEASE in my .m2 repository. I start to have some trouble because this class became deprecated in this newer version.
I need help to understand how Sonar “retrieve” the correct dependency because we have more than one application using both sonar and maven repository and they could have different dependencies.
I need to set sonar to get the proper dependency for each application.
SonarQube Scanner 126.96.36.1992