Hello,
I’m trying to do my first scan of our java source stored in CVS. I’m using SonarQube version 7.2.1, and Sonar Scanner version 3.2.0.1227. I set up my sonar-project file in the root folder. When I run the scanner, it detects that I’m using CVS but fails because it can’t find a folder / file CVS\Root inside my source directory. I don’t have this file. There is a folder called CVS but it only contains an XML file called fileattr. Is there a workaround for this? Here’s my output:
D:\JavaSource\FC> sonar-scanner
INFO: Scanner configuration file: C:\sonar-scanner\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\JavaSource\FC\sonar-project.properties
INFO: SonarQube Scanner 3.2.0.1227
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Windows Server 2008 R2 6.1 amd64
INFO: User cache: C:\Users\task_user\.sonar\cache
INFO: SonarQube server 7.2.1
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Publish mode
INFO: Load global settings
INFO: Load global settings (done) | time=203ms
INFO: Server id: AWVDSxQYg1XcpJ3BbPNO
INFO: User cache: C:\Users\task_user\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=93ms
INFO: Load/download plugins (done) | time=187ms
INFO: Loaded core extensions:
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=374ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=47ms
INFO: Load active rules
INFO: Load active rules (done) | time=593ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=47ms
INFO: Project key: fmic:FremontComplete
INFO: Project base dir: D:\JavaSource\FC
INFO: ------------- Scan Fremont Complete
INFO: Load server rules
INFO: Load server rules (done) | time=203ms
INFO: Base dir: D:\JavaSource\FC
INFO: Working dir: D:\JavaSource\FC\.scannerwork
INFO: Source paths: .
INFO: Source encoding: windows-1252, default locale: en_US
INFO: Index files
INFO: 9587 files indexed... (last one was js/yui3-gallery/build/gallery-bulkedit/gallery-bulkedit-min.js,v)
INFO: 15335 files indexed
INFO: Quality profile for xml: Sonar way
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: 2641 source files to be analyzed
INFO: 2631/2641 files analyzed, current file: D:\JavaSource\FC\work\org\apache\jsp\CVS\fileattr.xml
INFO: 2641/2641 source files have been analyzed
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=10530ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=125ms
INFO: Sensor XML Sensor [xml]
INFO: Sensor XML Sensor [xml] (done) | time=28844ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=1701ms
INFO: Sensor CPD Block Indexer
INFO: Sensor CPD Block Indexer (done) | time=15ms
INFO: SCM provider for this project is: cvs
INFO: 2641 files to be analyzed
INFO: 0/2641 files analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:11.355s
INFO: Final Memory: 22M/808M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Can't read D:\JavaSource\FC\CVS\Root
ERROR: Caused by: File 'D:\JavaSource\FC\CVS\Root' does not exist
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.