Error configuring application listener of class org.springframework.web.context.
使用sona6.2,在jenkins上配置sonar。
[edss] $ "E:\Program Files\sonar-scanner-2.6.1\bin\sonar-scanner.bat" -e -Dsonar.host.url=http://localhost:9090 ******** -Dsonar.language=java -Dsonar.projectName=saffron -Dsonar.projectVersion=1.0 -Dsonar.sourceEncoding=UTF-8 -Dsonar.projectKey=saffron -Dsonar.sources=. -Dsonar.projectBaseDir=D:\jenkins\workspace\edss
E:\Program Files\sonar-scanner-2.6.1\bin\..
INFO: Scanner configuration file: E:\Program Files\sonar-scanner-2.6.1\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\jenkins\workspace\edss\sonar-project.properties
INFO: SonarQube Scanner 2.6.1
INFO: Java 1.8.0_60-ea Oracle Corporation (64-bit)
INFO: Windows 8.1 6.3 amd64
INFO: Error stacktraces are turned on.
INFO: User cache: C:\Users\ppOrange\.sonar\cache
INFO: Load global repositories
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.813s
INFO: Final Memory: 8M/243M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
Not authorized. Please check the properties sonar.login and sonar.password.
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
ERROR: SonarQube scanner exited with non-zero code: 1
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE
需要在构建那里加入这sonar-project.properties的属性。