Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6534249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:13:40+00:00 2026-05-25T10:13:40+00:00

Problem I have just installed the Sonar Jenkins plugin. I went into my configured

  • 0

Problem

I have just installed the Sonar Jenkins plugin. I went into my configured job (a free style job) that produces a WAR file artifact through an ANT build and did as follows:

  1. Check the Sonar checkbox. (No problems here)

  2. Configure the install dir of sonar (No problems here)

  3. Checked the checkbox that states: “Check if this project is NOT built with maven 2” (I am confused here)

    I have checked that box because I am not using maven for build, I am using ANT but it still asked me for required properties that resemble a lot MVN such as: Organization id, project id, project name, project version, source directories… etc..

    So I have filled those as well. When I click the play button “Build Now” the build seems to be running fine as it always had prior to sonar installation but it fails at the very end because its trying to execute MAVEN.

See as follows:

$ mvn -f /root/.jenkins/jobs/HRDA/workspace/pom.xml -e -B sonar:sonar
FATAL: command execution failed
java.io.IOException: Cannot run program “mvn” (in directory “/root/.jenkins/jobs/HRDA/workspace”): java.io.IOException: error=2, No such file or directory

Questions

  1. Why is Sonar trying to execute Maven if I have checked the box that said check this box if you do NOT use Maven 2?

  2. Can I make use of this Sonar plugin if my apps are built with ANT, GANT, GRADLE?

  3. Do I have to reconvert my apps to use MVN builds?

Thanks,
– Dario

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:13:41+00:00Added an answer on May 25, 2026 at 10:13 am

    Like Oers suggested on my question comments if you are using ANT as a build script in your CI server (Jenkins in my case) you will have to use the SONAR-ANT-TASK to generate Sonar reports, do as follows:

    1. Download MySQL or any other Sonar supported RDBMS such as Postgres, Oracle, etc..’
    2. Download and Install sonar server.
    3. go to (sonar installation folder)/extras/database/mysql and run the create_database.sql script.
    4. I had to run an extra sql statement in my case using mysql, you can see here Unable to access Sonar MySQL database Caused by: java.sql.SQLException: Access denied for user 'sonar'@'glassfishdev.ccs.local' (using password: YES)
    5. Start Sonar by typing ./sonar.sh start
    6. Add the sonar ant task to your build script. You can follow this template http://docs.codehaus.org/display/SONAR/Analyse+with+Ant+Task+1.0
    7. DO NOT check the sonar check box in your Configure screen if you have the Hudson Sonar plugin for installed, as this plugin only works with Maven projects.
    8. Click the “Build Now” button. If everything above has been done correctly you should be able to see the reports at http://ipaddressofmachinesonarisinstalled:9000/

    Hope this helps,
    -Dario

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using PHPMyAdmin in a Ubuntu desktop test server box that I have just installed
I just installed DelimitMate and CloseTag plugins for MacVim and they seem to have
I have been pushing projects to Heroku without any issues. Just installed the Heroku_Accounts
I have a rails 2.3.8 app. I just installed RVM, and apparently things are
I just installed visual studio 2010 but when i create a new project Framework
I just installed Eclipse at home, so I can program servlets. But it seems
I have just created an Ubuntu virtual machine for web development and I want
I've just installed Apache and PHP. Apache appears to run php correctly, but it
I want to download and try an Open-Source OS (Emulation) written in Java. So,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.