PlanetJava
Custom Search

java-sonar-general
[Top] [All Lists]

Re: Getting an error in hudson while building sonar

Subject: Re: Getting an error in hudson while building sonar
Date: Tue, 20 Sep 2011 20:37:46 +0200
Vishnu,
Could you try to edit the job, click on advanced under Sonar and select a
version of Maven ? I think you are the victim of
http://jira.codehaus.org/browse/SONARPLUGINS-1337
Olivier
On Tue, Sep 20, 2011 at 12:05 AM, Freddy Mallet <
freddy.mallet-tdHRWj7/[email protected]> wrote:
> Indeed Vishnu, the current Sonar Hudson plugin requires to have Maven
> installed on the build machine. With the upcoming version 1.7 of the Hudson
> plugin this won't be the case  as an embedded version of the Sonar
> Standalone Runner will be available.
> ----------------------------------------
> Freddy Mallet
> www.SonarSource.org
> www.SonarSource.com
> ----------------------------------------
>
>
>
> On Mon, Sep 19, 2011 at 2:16 PM, Vishnuvardhan P 
> <[email protected]
> > wrote:
>
>>
>> Hi
>> I am using sonar 2.9 and apache maven 2.2.1
>>
>> When i configure sonar in hudson and build the project i am getting the
>> following error
>>
>> Started by user anonymous
>> [workspace] $ mvn.bat sonar:sonar
>> The system cannot find the file specified
>> FATAL: command execution failed
>> java.io.IOException: Cannot run program "mvn.bat" (in directory
>> "C:\Users\237928\.hudson\jobs\Sonar_Manual\workspace"): CreateProcess
>> error=2, The system cannot find the file specified
>>        at java.lang.ProcessBuilder.start(Unknown Source)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:192)
>>        at hudson.Proc$LocalProc.<init>(Proc.java:164)
>>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
>>        at hudson.Launcher$ProcStarter.start(Launcher.java:274)
>>        at hudson.Launcher$ProcStarter.join(Launcher.java:281)
>>        at hudson.tasks.Maven.perform(Maven.java:259)
>>        at
>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
>>        at
>> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:630)
>>        at hudson.model.Build$RunnerImpl.build(Build.java:175)
>>        at hudson.model.Build$RunnerImpl.doRun(Build.java:137)
>>        at
>> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:429)
>>        at hudson.model.Run.run(Run.java:1367)
>>        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
>>        at
>> hudson.model.ResourceController.execute(ResourceController.java:88)
>>        at hudson.model.Executor.run(Executor.java:145)
>> Caused by: java.io.IOException: CreateProcess error=2, The system cannot
>> find the file specified
>>        at java.lang.ProcessImpl.create(Native Method)
>>        at java.lang.ProcessImpl.<init>(Unknown Source)
>>        at java.lang.ProcessImpl.start(Unknown Source)
>>        ... 16 more
>> Skipping sonar analysis due to user build trigger
>> [DEBUG] Skipping watched dependency update for build: Sonar_Manual #11 due
>> to result: FAILURE
>> Finished: FAILURE
>>
>> Whether any maven settings needs to be configured in hudson.I am using
>> sonar
>> -hudson plugin 1.6
>> --
>> View this message in context:
>> http://old.nabble.com/Getting-an-error-in-hudson-while-building-sonar-tp32494481p32494481.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
>>
>>
>>
>
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
  • Getting an error in hudson while building sonar
    • Re: Getting an error in hudson while building sonar
      • Re: Getting an error in hudson while building sonar,
      • Re: Getting an error in hudson while building sonar
        • Re: Getting an error in hudson while building sonar
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy