Sonar Runner does not takes sonar.projectKey value latest c# plugin version

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Sonar Runner does not takes sonar.projectKey value latest c# plugin version

Guru
This post was updated on .
i am running .net commands directly through the command line, below is the same

Note: i am migrated from sonar runner 1.1 to 2.2, but i'm using the same commands used in 1.1 version

sonar-runner.bat -D sonar.dotnet.version=4.0 -D sonar.language=cs -D sonar.dotnet.buildConfiguration=Release -D sonar.projectVersion=1.0-SNAPSHOT -D sonar.projectKey=com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports -D sonar.donet.visualstudio.testProjectPattern="*.UnitTest*,*.UnitTest*,*.UnitTests,*.UnitTests*" -D sonar.dotnet.visualstudio.solution.file="Stores-Architecture/STR-DNet/Dev/ITN_1318_InBoundPricing_16.2_POC/StoreApps/Web/RTXTranReports/RTXTranReports.sln" -D sonar.dotnet.key.generation.strategy=safe -D sonar.projectName=Stores-Architecture_ActDev_StoreApps_RTXTranReports -Dsonar.fxcop.assemblyDependencyDirectories= -D sonar.gallio.mode=active -D sonar.gallio.runner=IsolatedProcess -D sonar.gallio.coverage.tool=OpenCover -D sonar.ndeps.mode=skip

even though i mention the  sonar.projectKey=com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports still i am getting error saying that

You must define the following mandatory properties for 'com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports': sonar.sources. below is the error generated in while running. any help would really appropriated.
         
     [exec] D:\apps\Sonar-DotNet\sonar-runner-2.2
     [exec] Sonar Runner 2.2
     [exec] Java 1.6.0_43 Sun Microsystems Inc. (32-bit)
     [exec] Windows Server 2008 R2 6.1 x86
     [exec] INFO: Runner configuration file: D:\apps\Sonar-DotNet\sonar-runner-2.2\conf\sonar-runner.properties
     [exec] INFO: Project configuration file: NONE
     [exec] INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
     [exec] INFO: Work directory: D:\apps\Sonar-DotNet\.sonar
     [exec] INFO: Sonar Server 3.5.1
     [exec] INFO: ------------------------------------------------------------------------
     [exec] INFO: EXECUTION FAILURE
     [exec] INFO: ------------------------------------------------------------------------
     [exec] Total time: 0.954s
     [exec] Final Memory: 0M/15M
     [exec] INFO: ------------------------------------------------------------------------
     [exec] ERROR: Error during Sonar runner execution
     [exec] ERROR: Unable to execute Sonar
     [exec] ERROR: Caused by: You must define the following mandatory properties for 'com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports': sonar.sources
     [exec] ERROR:
     [exec] ERROR: To see the full stack trace of the errors, re-run Sonar Runner with the -e switch.
     [exec] ERROR: Re-run Sonar Runner using the -X switch to enable full debug logging.
Reply | Threaded
Open this post in threaded view
|

Re: Sonar Runner does not takes sonar.projectKey value in 2.2 version

Fabrice Bellingard-4
Hummm... the message is quite clear: you haven't set the "sonar.sources" property. For a .NET project, you should set it to "sonar.sources=."


Best regards,

Fabrice BELLINGARD | SonarSource
http://sonarsource.com


On Mon, May 13, 2013 at 1:15 PM, Guru <[hidden email]> wrote:
i am running .net commands from directly through the command line, below is
the same

sonar-runner.bat -D sonar.dotnet.version=4.0 -D sonar.language=cs -D
sonar.dotnet.buildConfiguration=Release -D sonar.projectVersion=1.0-SNAPSHOT
-D
*sonar.projectKey=com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports*
-D
sonar.donet.visualstudio.testProjectPattern="*.UnitTest*,*.UnitTest*,*.UnitTests,*.UnitTests*"
-D
sonar.dotnet.visualstudio.solution.file="Stores-Architecture/STR-DNet/Dev/ITN_1318_InBoundPricing_16.2_POC/StoreApps/Web/RTXTranReports/RTXTranReports.sln"
-D sonar.dotnet.key.generation.strategy=safe -D
sonar.projectName=Stores-Architecture_ActDev_StoreApps_RTXTranReports
-Dsonar.fxcop.assemblyDependencyDirectories= -D sonar.gallio.mode=active -D
sonar.gallio.runner=IsolatedProcess -D sonar.gallio.coverage.tool=OpenCover
-D sonar.ndeps.mode=skip

even though i mention the
*sonar.projectKey=com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports*
still i am getting error saying that

You must define the following mandatory properties for
'com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports':
sonar.sources. below is the error generated in while running. any help would
really appropriated.

     [exec] D:\apps\Sonar-DotNet\sonar-runner-2.2
     [exec] Sonar Runner 2.2
     [exec] Java 1.6.0_43 Sun Microsystems Inc. (32-bit)
     [exec] Windows Server 2008 R2 6.1 x86
     [exec] INFO: Runner configuration file:
D:\apps\Sonar-DotNet\sonar-runner-2.2\conf\sonar-runner.properties
     [exec] INFO: Project configuration file: NONE
     [exec] INFO: Default locale: "en_US", source code encoding:
"windows-1252" (analysis is platform dependent)
     [exec] INFO: Work directory: D:\apps\Sonar-DotNet\.sonar
     [exec] INFO: Sonar Server 3.5.1
     [exec] INFO:
------------------------------------------------------------------------
     [exec] INFO: EXECUTION FAILURE
     [exec] INFO:
------------------------------------------------------------------------
     [exec] Total time: 0.954s
     [exec] Final Memory: 0M/15M
     [exec] INFO:
------------------------------------------------------------------------
     [exec] ERROR: Error during Sonar runner execution
     [exec] ERROR: Unable to execute Sonar
     [exec] ERROR: Caused by: You must define the following mandatory
properties for
'com.target:sonarStores-Architecture_ActDev_StoreApps_RTXTranReports':
sonar.sources
     [exec] ERROR:
     [exec] ERROR: To see the full stack trace of the errors, re-run Sonar
Runner with the -e switch.
     [exec] ERROR: Re-run Sonar Runner using the -X switch to enable full
debug logging.



--
View this message in context: http://sonar.15.x6.nabble.com/Sonar-Runner-does-not-takes-sonar-projectKey-value-in-2-2-version-tp5012343.html
Sent from the Sonar user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: Sonar Runner does not takes sonar.projectKey value in 2.2 version

Guru
thanks Fabrice .. it's working fine after i added sonar.sources=. property in my command line