From Protege Wiki
Revision as of 14:41, November 10, 2010 by CFaigle (talk) (Created page with '=Installation and configuration of central server infrastructure = It is recommended to install the tools in the proposed sequence, since we have the following dependencies: * Hu...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installation and configuration of central server infrastructure

It is recommended to install the tools in the proposed sequence, since we have the following dependencies:

  • Hudson uses Maven
  • Hudson includes the Sonar plugin and triggers Sonar
  • Maven retrieves libraries from Nexus
  • Hudson executes the Maven script
  • Maven includes profiles from Sonar and Nexus.

We assume that SVN is already installed and that the projects exist in SVN.


  • Download and install java.
  • Set environment setting JAVA_HOME pointing to the java folder (e.g. on Windows “C:\Program Files\Java\jdk1.6.0_21\bin”).


Initial Installation and configuration (one time)

Download file (OS dependent) from http://// (e.g. “”). Extract files to final directory. OS dependent

  • Windows: Open command line with bin folder as current directory (e.g. “C:\nexus\nexus-oss-webapp-1.8.0\bin\jsw\windows-x86-32”). Run Installnexus and Startnexus from command line. Windows Users (Vista, Windows 7) need to execute cmd.exe as Administrator (go to “All Programs”, “Accessories”, “Command Prompt”, right mouse click on “Run as Administrator”.
  • Linux: Create folder /var/nexus/. Copy downloaded filder into this folder. Open command line with bin folder as current (e.g. /var/nexus/nexus-oss-webapp-1.8.0/bin/jsw/linux-x86-32). Run sudo ./nexus start

Alternatively you can install Nexus as service as described in

Test Nexus: http://localhost:8081/nexus/index.html. Login to Nexus with user name and password “admin” respectively “admin123”. Optionally make SMTP settings.

How to change the password

If the NEXUS password is changed (TODO: has to be done soon), this has to happen in two places: 1. Change it in Nexus itself using the administration/security interface 2. Change it in the settings.xml in maven/conf/ directory.

TODO: Change password.

Setting up repositories

Option 1: Upload files individually

Nexus comes with a predefined set of repositories. Now add the artifacts as described in the project manager's guide. TODO add link.

Option 2: Optionally import external repositories

After install there is a “storage” folder (e.g. “C:\nexus\sonatype-work\nexus\storage”).

Copy Sonar folder to storage and overwrite folder “thirdparty”. In thirdparty there are the Stanford libs. Please refer to the appendix to get an overview.

Current problem: the jars in the official repositories have not distinct versions. So it is not possible to point to a specific version. We are talking about the jars mentioned in the WebProtege developer guide ( section “Fix project compilation errors”.


Just download zip file sonar-2.2 from Unpack it to our tools folder (e.g. to /var/sonar/sonar-2.2).

Start sonar from bin folder (e.g. /var/sonar/sonar-2.2/bin/linux-x86-32 folder:

  • Windows StartSonar
  • Linux: (don’t forget to make this file and wrapper to be executable (set permissions)

Test Sonar via http://localhost:9000. The default admin user name and password are admin/admin, however, there is no need to login.

Optionally install Sonar as LINUX service. Command line /var/sonar/sonar-2.2.3/sudo cp bin/linux-x86-64/ /etc/init.d/sonar



Download Maven from und chose apache-maven-2.2.1.

Add system environment variables:

  • M2_HOME pointing to new directory apache-maven-2.2.1
  • JAVA_HOME (if not already set)

Add to Path ;%M2_HOME%\bin


Change file “apache-maven-2.2.1/conf/settings.xml”

  • Add profiles for sonar and nexus
  • Add servers

A complete settings.xml file can be downloaded from here. TODO


Initial Installation (one time)


  • Download war-file from Just click on “latest and greatest”.
  • Start server with java –jar hudson.war. Runs on http://localhost:8080


Initial Configuration (one time)

Add plugins

  • Go to “Manage Hudson” → “Manage Plugins”.
  • Go to available plugins and install “Hudson Sonar Plugin”.
  • Optionally add additional plugins. E.g. for Twitter, Trigger, e.g. jabber. Build reports is not needed as we use Sonar.

Go back to “Manage Hudson” and select “Configure System” and make the following changes/settings

  • Jdk: set name (e.g. “Java 1.6”) and path to Java (e.g. “C:\Program Files\Java\jdk1.6.0_21”). Hudson does not read the system variable JAVA_HOME.
  • Maven: Add Maven (not ANT) and set name (e.g. “Maven 2”) and path to Maven (e.g. “C:\Tools\apache-maven-2.2.1” respectively ). Hudson does not read the system variable MAVEN_HOME.
  • “Add Sonar”. Just add a name (e.g. “Sonar”). Set location e.g. to http://bmir-hudson1:9000.
  • Optionally set e-mail notifications

Add projects

Please refer to the project manager section. TODO add link.

Selenium Server (Selenium Remote Control)

Set up a central Selenium Server.

  • Download Selenium RC from
  • Unzip file. We only need selenium-server-1.0.3 subfolder.
  • Start server with java –jar selenium-server.jar
  • Make sure that the display is set, e.g. export DISPLAY=… (case sensitive, only WLAN IP worked?!?)

There is already a file /etc/init.d/

[johner@bmir-hudson1 ~]$ export DISPLAY=
[johner@bmir-hudson1 ~]$ xhost
 access control disabled, clients can connect from any host
[johner@bmir-hudson1 ~]$ java -jar /var/selenium/selenium-server.jar

Note: the display settings have to be done before selenium is started!

Either there is a XServer running on the test machine or a client machine (or server itself) needs running X-Server, e.g. run xming –ac. XMing is available for Windows.


Standard out of the box: Either use yum or just download and extract apache-tomcat. Change in server-xml port to 8082 in order to avoid conflicts with Hudson.

sudo /opt/tomcat/bin/

User name and password currently are currently set to admin/protégé.

Change by Alex: /usr/local/tomcat6 it should start with /sbin/service tomact6 start