dcabasson
2009-10-19 20:50:30 UTC
Hi guys,
I am trying my best to set up sonar in an offline environment.
I currently have a hudson server working just fine in this offline
environment. It is hosted on a server not physically connected to Internet
(So not many other options there). Whenever I need something, I go retrieve
it from internet, and copy it over to this server, using my USB key.
Now, on top of hudson, I'd like to have sonar working. I have installed the
server and it seems to be doing pretty fine. The problem is when I run the
sonar maven plugin, I have the error :
[INFO] Can not execute Sonar
Embedded error: Unable to build project for plugin
'org.codehaus.sonar.runtime:sonar-core-maven-plugin': POM
'org.codehaus.sonar.runtime:sonar-core-maven-plugin' not found in
repository: System is offline.
org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20091019163638
What I did to solve that is I ran a local sonar server on a computer on
internet, and ran the maven goal to collect all needed artifacts in my
repository. I then copied those artifacts to the repository on the offline
machine.
The issue is that on my local PC all the artifacts in the maven repository
under org.codehaus.sonar.runtime are tagged at 20091019121715 (which is the
start time of my server in local) and not the above timestamp (which the
start time on the offline server).
How can I manage to change the timestamp the server is looking for? Changing
it for all artifacts would be quite painful (as it is in folder name, file
names, and the pom itself). Is there a way to override this timestamp that
sonar is looking for?
Thanks for your help!
Denis.
I am trying my best to set up sonar in an offline environment.
I currently have a hudson server working just fine in this offline
environment. It is hosted on a server not physically connected to Internet
(So not many other options there). Whenever I need something, I go retrieve
it from internet, and copy it over to this server, using my USB key.
Now, on top of hudson, I'd like to have sonar working. I have installed the
server and it seems to be doing pretty fine. The problem is when I run the
sonar maven plugin, I have the error :
[INFO] Can not execute Sonar
Embedded error: Unable to build project for plugin
'org.codehaus.sonar.runtime:sonar-core-maven-plugin': POM
'org.codehaus.sonar.runtime:sonar-core-maven-plugin' not found in
repository: System is offline.
org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20091019163638
What I did to solve that is I ran a local sonar server on a computer on
internet, and ran the maven goal to collect all needed artifacts in my
repository. I then copied those artifacts to the repository on the offline
machine.
The issue is that on my local PC all the artifacts in the maven repository
under org.codehaus.sonar.runtime are tagged at 20091019121715 (which is the
start time of my server in local) and not the above timestamp (which the
start time on the offline server).
How can I manage to change the timestamp the server is looking for? Changing
it for all artifacts would be quite painful (as it is in folder name, file
names, and the pom itself). Is there a way to override this timestamp that
sonar is looking for?
Thanks for your help!
Denis.
--
View this message in context: http://www.nabble.com/Having-sonar-run-in-offline-mode-tp25965302p25965302.html
Sent from the Sonar user mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/Having-sonar-run-in-offline-mode-tp25965302p25965302.html
Sent from the Sonar user mailing list archive at Nabble.com.