Sonar:sonar running twice

So in maven, why would a sonar analysis run twice, back to back? There’s nothing in the pom or maven command line to indicate this should happen, is there? I’m triggering this from a Jenkins pipeline using withSonarqubeEnv around a bat mvn statement:

mvn -s F:/Jazz/Applications/Peter_Maven_Jenkins@tmp/config1190144529562625109tmp -fF:/Jazz/Applications/Peter_Maven_Jenkins/pom.xml -T 2 jacoco:prepare-agent clean package jacoco:report -U sonar:sonar


Welcome to the community!

I’m no mavenista, but my guess is that you have analysis specified in a profile, so it’s kicking off automatically based on your pom, and then again because it’s on the command line.