简体   繁体   中英

Jenkins + sonar-maven-plugin

Anybody know how to change/define the source directory for sonar-maven-plugin? I've tried to define parameters -Dsonar.source=/src/main/scala -Dsonar.test=/src/test/scala but these are not applied when the plugin starts on jenkins

You have to change those parameters in the POM itself. Trying to "override" those parameters with "sonar.*" properties won't work when running Sonar analyses with Maven.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM