« Return to Thread: Using Sonar in Offline mode

Re : [sonar-user] Using Sonar in Offline mode

by Damien Coraboeuf :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,

So we have made the following things to make Sonar work offline:

1. Copy the Maven repository from a location where the Sonar plugin has already fully worked
2. Edit the settings.xml so Maven works offline:
    a) <offline>true</offline>
    b) Create a mirror for Sonar artifacts (thanks to Freddy)


<settings>
...
<mirrors>

<mirror>
<id>sonar</id>
<name>Sonar Maven repository</name>
http://sonarserver:sonarport/deploy/maven
<mirrorOf>centrak</mirrorOf>

</mirror>
</mirrors>
...
</settings>
Freddy, notice the use of central instead of * in the mirror definition.

Regards,
Damien.


De : Freddy Mallet <freddy.mallet@...>
À : user@...
Envoyé le : Lundi, 9 Mars 2009, 22h28mn 14s
Objet : Re: [sonar-user] Using Sonar in Offline mode


Hi Damien,

I've never set up Sonar to work offline and Maven isn't known to be easily usable offline.

Nevertheless, try to follow those steps :
  • Install Sonar and Maven on a computer which has an Internet Access
  • Launch the Sonar Maven goal to analyse a project
  • Copy / Paste the Maven local repository from this computer to your target computer (which doesn't have access to Internet)
  • Install Maven on the target computer
  • Edit the Maven conf/settings.xml file to check the path of the Maven local repository
  • Add the following section to the Maven conf/settings.xml file :

<settings>
...
<mirrors>
<mirror>
<id>sonar</id>
<name>Sonar Maven repository</name>
http://sonarserver:sonarport/deploy/maven
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
...
</settings>
Launch the Sonar Maven goal and keep us informed ...

cheers,

Freddy

On Mon, Mar 9, 2009 at 12:49 PM, Damien Coraboeuf <dcoraboeuf@...> wrote:

Hi,

We wish to setup Sonar on our build server which is not connected to the Internet. Since Sonar relies on Maven I think I will have to install manually a Maven repository.

But any of you have any feedback/issue/best practice to share about running Sonar offline ?

Thanks,
Damien.





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




 « Return to Thread: Using Sonar in Offline mode