SCM provider was set to "local" but no SCM provider found for this key. Supported SCM providers are svn,git
<scm>
<connection>scm:local:none</connection>
<developerConnection>scm:local:none</developerConnection>
</scm>
In fact autodetection is only used as a fallback when scm is not provided by the user. So in your example, having scm connection defined to "local" in your pom will always make it fail.
[download & run SonarQube LTS, contains SVN v1.3 plugin]
svn co http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin
cd maven-project-info-reports-plugin
[vi_or_edit pom.xml, replace scm.[connection&developerConnection] by scm:local:none ]
mvn package -Dmaven.test.skip=true
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000
[INFO] Sensor SCM Sensor
[INFO] SCM provider for this project is: svn
[INFO] 63 files to be analyzed
[INFO] 4/63 files analyzed
...
[INFO] 63/63 files analyzed
[INFO] Sensor SCM Sensor (done) | time=90496ms
Ticket created: https://jira.sonarsource.com/browse/SONARSCSVN-11
Hi Julien,
Thanks for the reply, and happy new year :-)
In fact autodetection is only used as a fallback when scm is not provided by the user. So in your example, having scm connection defined to "local" in your pom will always make it fail.
I'm sorry, but I'm not agree with that. The scm configuration seems used when autodetection is failed.
IMO, this behavior should not change:
- A working copy information (if can be retrieved) is better than a user configuration.
- When multi-branch SonarQube process are configured in CI platform, the pom content on SCM is often bad.
Ticket created: https://jira.sonarsource.com/browse/SONARSCSVN-11
Thank you :-). I didn't understand why it has worked with previous v4 LTS, but this is not very important.
At that time we were relying on Maven SCM framework and behavior was totally different.