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

  • Home
  • SEARCH
  • 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 8499381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:39:03+00:00 2026-06-11T00:39:03+00:00

A while ago I setup Sonar to scan a development project. The scans are

  • 0

A while ago I setup Sonar to scan a development project. The scans are invoked nightly using a cronjob. At one point I had an issue with the machine that run the cronjob and a few nightly scans were missed. I downloaded the source code from one of the days that was missed, and completed a new Sonar scan using Sonar Runner. As I expected the data shows up in Sonar as the most recent scan which is not what I want. I would like to inject that scan in to a specific date so I can fill the days when the scan was not run. I did not see an option to do this in the sonar-project.properties file.

Is there a way I can run a Sonar scan, but have the data be entered on a date of my choice rather than the current date, so it shows up in the appropriate position in my Sonar timelines?

  • 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-06-11T00:39:05+00:00Added an answer on June 11, 2026 at 12:39 am

    I haven’t used them but the Sonar documentation describes the additional properties that would enable historical analysis. Specifically it’s the “sonar.projectDate” property you need to set.

    You haven’t specified which Java build technology you’re using. I’ve included some examples below.

    Finally, have you considered setting up Jenkins to launch Sonar, instead of cron? Lots of good reasons for running Jenkins, but if you’re using Maven as your build tool, the Jenkins Sonar plugin makes Sonar integration very easy.

    Maven example

    mvn clean install -DskipTests=true
    mvn -Dsonar.projectDate=2012-09-01 sonar:sonar
    

    ANT example

    ant -Dsonar.projectDate=2012-09-01 clean sonar
    

    Note:

    • This assumes you have a target called “sonar” setup to compile, test and run sonar.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a domain, call it mydom.com. A while ago I started using Google
A while ago I started an open-source project, which for me meant (until now)
I set up my app a while ago using a tutorial for setting up
A while ago, I had a discussion with a colleague about how to insert
A while ago I asked this question: using xslt stylesheet to convert xhtml blank
Here's my story: I had something like this set up a while ago. create_table(:users)
A while ago, I had noticed that when encoding a map name: value to
A while ago, I started on a project where I designed a html-esque XML
A while ago I asked myself, when I write something like this: char* first(int
A while ago, i posted a question about a parent div not reacting to

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.