No abolute path on -f argument used by Hudson Sonar plugin

View: New views
3 Messages — Rating Filter:   Alert me  

No abolute path on -f argument used by Hudson Sonar plugin

by Jeroen Wolff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, im using Sonar 1.1 plugin on Hudson 1.328

My maven build is fine, but the sonar:sonar goal is not working due to path problems.

This is fine:
Executing Maven:  -B -f C:\Documents and Settings\wolfj09\.hudson\jobs\BerichtenAdministratie\workspace\hudson_beradmin\WDP_C_N\WDP_320_BerAdmin\0003_Bouw\src\beradmin\pom.xml clean install

and this is wrong:

hudson_beradmin] $ "C:\Program Files\XMAVEN\101\bin\mvn.bat" -e -B -f hudson_beradmin\WDP_C_N\WDP_320_BerAdmin\0003_Bouw\src\beradmin\pom.xml -Dsonar.host.url=http://localhost:9000 sonar:sonar

What's missing is the absolute path in -f

result:
INFO] Cannot execute mojo: sonar. It requires a project with an existing pom.xml, but the build is not using one.

Re: No abolute path on -f argument used by Hudson Sonar plugin

by Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Jeroen,

Looks to me that your path is wrong, you are repeating hudson_beradmin whilst you are already in it.

Olivier



On Wed, Oct 14, 2009 at 12:15 PM, Jeroen Wolff <jeroen.wolff@...> wrote:

Hi, im using Sonar 1.1 plugin on Hudson 1.328

My maven build is fine, but the sonar:sonar goal is not working due to path
problems.

This is fine:
Executing Maven:  -B -f C:\Documents and
Settings\wolfj09\.hudson\jobs\BerichtenAdministratie\workspace\hudson_beradmin\WDP_C_N\WDP_320_BerAdmin\0003_Bouw\src\beradmin\pom.xml
clean install

and this is wrong:

hudson_beradmin] $ "C:\Program Files\XMAVEN\101\bin\mvn.bat" -e -B -f
hudson_beradmin\WDP_C_N\WDP_320_BerAdmin\0003_Bouw\src\beradmin\pom.xml
-Dsonar.host.url=http://localhost:9000 sonar:sonar

What's missing is the absolute path in -f

result:
INFO] Cannot execute mojo: sonar. It requires a project with an existing
pom.xml, but the build is not using one.

--
View this message in context: http://www.nabble.com/No-abolute-path-on--f-argument-used-by-Hudson-Sonar-plugin-tp25888487p25888487.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




Re: No abolute path on -f argument used by Hudson Sonar plugin

by Jeroen Wolff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Olivier, that was my problem, it works!!

Olivier Gaudin-2 wrote:
Hello Jeroen,

Looks to me that your path is wrong, you are repeating hudson_beradmin
whilst you are already in it.

Olivier



On Wed, Oct 14, 2009 at 12:15 PM, Jeroen Wolff <jeroen.wolff@gmail.com>wrote:

>
> Hi, im using Sonar 1.1 plugin on Hudson 1.328
>
> My maven build is fine, but the sonar:sonar goal is not working due to path
> problems.
>
> This is fine:
> Executing Maven:  -B -f C:\Documents and
>
> Settings\wolfj09\.hudson\jobs\BerichtenAdministratie\workspace\hudson_beradmin\WDP_C_N\WDP_320_BerAdmin\0003_Bouw\src\beradmin\pom.xml
> clean install
>
> and this is wrong:
>
> hudson_beradmin] $ "C:\Program Files\XMAVEN\101\bin\mvn.bat" -e -B -f
> hudson_beradmin\WDP_C_N\WDP_320_BerAdmin\0003_Bouw\src\beradmin\pom.xml
> -Dsonar.host.url=http://localhost:9000 sonar:sonar
>
> What's missing is the absolute path in -f
>
> result:
> INFO] Cannot execute mojo: sonar. It requires a project with an existing
> pom.xml, but the build is not using one.
>
> --
> View this message in context:
> http://www.nabble.com/No-abolute-path-on--f-argument-used-by-Hudson-Sonar-plugin-tp25888487p25888487.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
>
>
>