hi All
Our current github-action cicd pipeline is currently using mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar to scan our project. After running sonar scan, I found that the target folder structure had changed.
This is the folder structure that existed before running the sonarscan:
After running sonarscan, the classes folder as well as jar files and other folders that were supposed to be in the target folder were moved outside, and target folder was removed.
And this only happens when you run mvn sonar:sonar, and not when you run mvn package or mvn verify (or whatever you normally do before Sonar analysis)?
I can’t reproduce this. It might help if you upload a sample project you can reproduce this issue on.