Installing mhu tools for karaf

The best choice for developers to install mhu tools is to use the current snapshot. With the snapshot the most of the discussed topics are working. I will make a note of the used SNAPSHOT you can use it or use the following release. If you use the relese skip the following description and start with the karaf installation.

Build the current Snapshot

Get the Sources

git clone
git clone

Compile it into the local repository

cd mhus-lib
mvn install
cd ..
cd mhus-osgi-tools
mvn install

Karaf installation

Setup Karaf

Download Karaf 3.0.5 from the Website and unpack the zip bundle. Now change directory into the karaf directory ‘apache-karaf-3.0.5’ and start karaf for the first time ./bin/karaf and dtop it with ‘logout’.

If you need help with proxys or other problems then ask duckduckgo.

Basic Setup

Route the logging to the console for a better feedback. Open the file etc/org.ops4j.pax.logging.cfg and change the line

log4j.rootLogger=INFO, out, osgi:*


log4j.rootLogger=INFO, out, osgi:*, stdout

Start karaf again.

Install mhu-osgi-tools

Insert the following commands:

feature:repo-add activemq 5.12.1
feature:repo-add cxf 2.7.11
feature:install jdbc
feature:install openjpa
feature:install scr
feature:install activemq-broker

install -s mvn:mysql/mysql-connector-java/5.1.18
install -s mvn:org.codehaus.jackson/jackson-core-asl/1.9.5
install -s mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.5
install -s mvn:org.apache.httpcomponents/httpcore-osgi/4.2.1
install -s mvn:org.apache.httpcomponents/httpclient-osgi/4.2.1
install -s mvn:de.mhus.lib/mhu-lib-annotations/${mhulib_version}
install -s mvn:de.mhus.lib/mhu-lib-core/${mhulib_version}
install -s mvn:de.mhus.lib/mhu-lib-jms/${mhulib_version}
install -s mvn:de.mhus.lib/mhu-lib-logging/${mhulib_version}
install -s mvn:de.mhus.lib/mhu-lib-persistence/${mhulib_version}
install -s mvn:de.mhus.lib/mhu-lib-karaf/${mhulib_version}
install -s mvn:de.mhus.osgi/jms-commands/${mhuosgi_version}
install -s mvn:de.mhus.osgi/mhus-osgi-commands/${mhuosgi_version}
install -s mvn:de.mhus.osgi/mailosgi/${mhuosgi_version}
install -s mvn:de.mhus.osgi/mailkaraf/${mhuosgi_version}

Maybe you need to change the versions.

If you type ‘list’ you should see all installed bundles.

Now you are ready to use mhu osgi tools.


One thought on “Installing mhu tools for karaf

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s