Goal “sonar:sonar” does not exist in this project

37 views
Skip to first unread message

inderpree...@gmail.com

unread,
Jun 22, 2015, 3:29:39 AM6/22/15
to jenkins...@googlegroups.com
Hi,

I am using maven version 1.0.2 to build a java project in jenkins 1.532.I am trying to configure sonar report for this project.I am using Sonar version 4.0 .I get below error when i fire the build:

[Project_Sonar] $ /MyPath/maven-1.0.2/bin/maven -f /MyPath/workspace/Project_Sonar/maven.xml -e -B sonar:sonar -Dsonar.jdbc.driver=org.postgresql.Driver -Dsonar.jdbc.url=jdbc:postgresql://sonardb.example.com:5534/sonar ******** ******** -Dsonar.host.url=http://example.com:8093/sonar ******** ******** -Dmaven.repo.local=/Mypath/workspace/Project_Sonar/.repository
BUILD FAILED Goal "sonar:sonar" does not exist in this project.

Can anyone help?

Regards,
Inder

Baptiste Mathus

unread,
Jun 22, 2015, 3:56:20 AM6/22/15
to jenkins...@googlegroups.com
Hi,

I think this is more a question for the maven users list, or even the sonarqube one.
Anyway, I'm not totally sure, but I don't think sonar supports using Maven 1.x (which is deprecated since 2007, and even Maven 2.x has been end-of-lifed since).

Cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/86769c32-1fde-41ed-b6bd-8d5b4c2fd50d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

inderpree...@gmail.com

unread,
Jun 22, 2015, 4:32:04 AM6/22/15
to jenkins...@googlegroups.com
Thanks for your response.
 
Regards,
Inderpreet Kaur
Reply all
Reply to author
Forward
0 new messages