I get the following error when running the SonarQube IntelliJ Analysis Plugin
14:40:35.544 INFO - Apply project exclusions
Exception in thread "main" org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.impl.BatchLauncherMain.execute(BatchLauncherMain.java:41)
at org.sonar.runner.impl.BatchLauncherMain.main(BatchLauncherMain.java:59)
Caused by: java.lang.IllegalArgumentException: 'sonar.projectDate' property cannot be older than the date of the last known quality snapshot on this project. Value: '2014-01-23T14:40:35-0700'. Latest quality snapshot: '2014-01-23'. This property may only be used to rebuild the past in a chronological order.
at
org.sonar.batch.ProjectConfigurator.checkCurrentAnalysisIsTheLatestOne(ProjectConfigurator.java:87)
at org.sonar.batch.ProjectConfigurator.configure(ProjectConfigurator.java:71)
at org.sonar.batch.DefaultProjectTree.doStart(DefaultProjectTree.java:72)
at org.sonar.batch.DefaultProjectTree.start(DefaultProjectTree.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
This thread discusses a similar issue with Eclipse and SonarQube - http://comments.gmane.org/gmane.comp.java.sonar.general/31498 . But the thread hasn't been helpful.
I am running IntelliJ 13 and The SonarQube Plugin for IntelliJ v 1.0.
I have tried uninstalling and reinstalling the plugin. And I have tried clearing the "User cache". I am not sure what to try next.
The sonar project is part of the CI chain - so there are potentially multiple builds per day on the project.
Thanks
If you are running builds both locally and from a CI server, check that the clocks are relatively the same between the machines. If your CI server is ahead of your local machine, and publishing to Sonar (on check-in for example), but then you are also running locally with a different time (that's in the past) and trying to publish to sonar, then that could be a possible source of the conflict.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With