type).Ī instance is a complete new Apache Karaf runtime, isolated from the other ones.
#APACHE ANT MAC OS X ARCHIVE#
This artifact is named a KAR (KAraf aRchive).Ī KAR file is a zip archive containing theīasically, the kar format is a jar (so a zip file) which contains a set of feature descriptor and bundle jar files.Ī KAR file contains a repository folder containing:
#APACHE ANT MAC OS X INSTALL#
Optionally, WAR deployer (if you install the war feature) is able to handle WAR files.Īpache Karaf provides a special type of artifact that package a features XML and all resources described in the features.Wrap deployer is able to handle non-OSGi jar files and turns it as OSGi bundles “on the fly”.KAR deployer is able to handle KAR files (see KAR section for details).Features deployer is able to handle Apache Karaf features XML files (see Provisioning section for details).Spring deployer is able to handle Spring XML files.Blueprint deployer is able to handle Blueprint XML files.It means that it willĪutomatically resolves and installs all bundles, configurations, and dependency features described in the feature.īy default, Apache Karaf provides a set of deployers: When you install a feature, Apache Karaf installs all resources described in the feature. optionally a set of dependency features.optionally a set configurations or configuration files.a optional description (eventually with a long description).In Apache Karaf, the application provisioning is an Apache Karaf “feature”. To firstly deploy a lot of other bundles required by the application. So, it means that to deploy an OSGi application, most of the time, you have In OSGi, a bundle can depend to other bundles. An OSGi bundles is a regular jar file, with additional metadata in the jar MANIFEST. / system: OSGi bundles repository, laid out as a Maven 2 repositoryĭeploying all the requirements (bundles and configurations) of an application into a container is called the “provisioning”.Īn OSGi application is a set of OSGi bundles./ lib/endorsed: directory for endorsed libraries./ lib/ext: directory for JRE extensions./ lib: contains the bootstrap libraries./ instances: directory containing instances./ generated-bundles: temporary folder used by the deployers./ bin: control scripts to start, stop, login, ….The directory layout of a Karaf installation is as follows:
#APACHE ANT MAC OS X CODE#
Run mvn on karaf folder, mvn will download package they need, compile the source code and test on it. PATH=$PATH :/var/root/apps/maven/apache-maven-3.0-SNAPSHO/bin :/private/var/root/apache-ant-1.9.3/ dist/bin :$JAVA_HOME/bin.Export JAVA_HOME=$ (/usr/libexec/java_home -v 1.7) (you can change your version here).Download maven set, and run ant on maven folder.Download Ant and Junit jar in ant lib/optional, then run.Running /usr/libexec/java_home get Java home, set that path for variable JAVA_HOME (-v show all versions on your Mac).