You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2011/08/25 17:04:30 UTC

svn commit: r1161595 [1/2] - in /karaf/sandbox/jbonofre/cave/trunk: ./ manual/ manual/src/ manual/src/main/ manual/src/main/webapp/ manual/src/main/webapp/WEB-INF/ manual/src/main/webapp/WEB-INF/scalate/ manual/src/main/webapp/WEB-INF/scalate/layouts/ ...

Author: jbonofre
Date: Thu Aug 25 15:04:29 2011
New Revision: 1161595

URL: http://svn.apache.org/viewvc?rev=1161595&view=rev
Log:
Start of the Cave manual.

Added:
    karaf/sandbox/jbonofre/cave/trunk/BUILDING
    karaf/sandbox/jbonofre/cave/trunk/manual/
    karaf/sandbox/jbonofre/cave/trunk/manual/pom.xml
    karaf/sandbox/jbonofre/cave/trunk/manual/src/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.scaml
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/print.ssp
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/web.xml
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/developer-guide/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/developer-guide/index.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/index.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/manual.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/overview.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/adminsitrate-cave.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-client.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-repository.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/http-wrapper.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/index.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/installation.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/obr-commands.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/populate-repository.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/proxy-repository.conf
    karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/rest-service.conf
    karaf/sandbox/jbonofre/cave/trunk/server/command/src/main/java/org/apache/karaf/cave/server/command/RemoveRepositoryCommand.java
Modified:
    karaf/sandbox/jbonofre/cave/trunk/README
    karaf/sandbox/jbonofre/cave/trunk/pom.xml
    karaf/sandbox/jbonofre/cave/trunk/server/api/src/main/java/org/apache/karaf/cave/server/api/CaveRepositoryService.java
    karaf/sandbox/jbonofre/cave/trunk/server/command/src/main/resources/OSGI-INF/blueprint/cave-server-commands.xml
    karaf/sandbox/jbonofre/cave/trunk/server/storage/src/main/java/org/apache/karaf/cave/server/storage/CaveRepositoryServiceImpl.java

Added: karaf/sandbox/jbonofre/cave/trunk/BUILDING
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/BUILDING?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/BUILDING (added)
+++ karaf/sandbox/jbonofre/cave/trunk/BUILDING Thu Aug 25 15:04:29 2011
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+Building Apache Karaf Cave
+==========================
+
+Initial Setup
+-------------
+
+1) Install J2SE 6.0 SDK (or later), which can be downloaded from
+   http://www.oracle.com/technetwork/java/javase/downloads.
+   Use version of "JDK 6.0 Update 26" (or later).
+
+2) Make sure that your JAVA_HOME environment variable is set to the newly installed
+   JDK location, and that your PATH includes %JAVA_HOME%\bin (windows) or
+   $JAVA_HOME/bin (unix).
+
+3) Install Maven 3.0.3 (or later), which can be downloaded from
+   http://maven.apache.org/download.html. Make sure that your PATH includes
+   the MVN_HOME/bin directory.
+
+Building
+--------
+
+1) Download and uncompress the Apache Karaf Cave source distribution.
+
+2) Change to the top level directory of Apache Karaf Cave uncompressed source distribution.
+
+3) Run
+
+        $> mvn install
+
+   This will compile Apache Karaf Cave and run all of the tests in the
+   Apache Karaf Cave source distribution.
+
+4) Apache Karaf Cave is now present in your local Maven repository. Read the README file
+   to installl Cave into a running Apache Karaf instance.
\ No newline at end of file

Modified: karaf/sandbox/jbonofre/cave/trunk/README
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/README?rev=1161595&r1=1161594&r2=1161595&view=diff
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/README (original)
+++ karaf/sandbox/jbonofre/cave/trunk/README Thu Aug 25 15:04:29 2011
@@ -18,10 +18,26 @@
 Welcome to Apache Karaf Cave
 ============================
 Apache Karaf Cave is an Apache Karaf subproject. It provides an OSGi Bundle Repository (OBR) and Karaf 
-Resources Repository (KRR).
+Features Repository (KFR).
 
 OBR provides a service that can automatically install a bundle, with its deployment dependencies, from a bundle
-repository. 
+repository.
+
+Apache Karaf Cave provides the following features:
+    * Storage: Karaf Cave provides a filesystem storage. The storage backend is designed with a kind of plugin system,
+      it means that we can change the default filesystem storage by another kind of storage
+    * OBR metadata generation: Karaf Cave automatically creates the OBR metadata for you, using the artifacts presents
+      in the Cave repository.
+    * OBR registration: Karaf Cave allows you to directly register a Cave repository into the OBR RepositoryAdmin OSGi
+      service.
+    * Artifact upload: you can update any OSGi bundle in a Cave repository, using advanced URL, e.g.
+      mvn:groupId/artifactId/version
+    * "External" repository proxy: you can proxy an existing repository (like a Maven one) into a Cave repository. In
+      that case, the artifacts are still resident on the proxied repository, Cave handles the OBR metadata. Cave supports
+      file: and http: like URL, it means that Cave is able to browse a remote HTTP Maven repository.
+    * "External" repository population: you can populate your local Cave repository from an external repository.
+      It means that Cave browse the external repository URL (file: or http:), looking for OSGi bundles in the artifacts,
+      and copy the bundles in the Cave repository storage.
 
 
 Getting Started
@@ -31,11 +47,11 @@ BUILDING for instructions on building Ap
 
 To install Apache Karaf Cave, first you have to register the Cave features descriptor:
 
-karaf@root> features:addurl mvn:org.apache.karaf/cave/2.2.1/xml/features
+karaf@root> features:addurl mvn:org.apache.karaf.cave/apache-karaf-cave/3.0.0-SNAPSHOT/xml/features
 
 Now, you can install the Cave feature simply by typing:
 
-karaf@root> features:install cave
+karaf@root> features:install cave-server
 
 The PDF manual is the right place to find any information about Karaf Cave.
 

Added: karaf/sandbox/jbonofre/cave/trunk/manual/pom.xml
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/pom.xml?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/pom.xml (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/pom.xml Thu Aug 25 15:04:29 2011
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You under the Apache License, Version 2.0
+        (the "License"); you may not use this file except in compliance with
+        the License.  You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.karaf</groupId>
+        <artifactId>cave</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.karaf.cave</groupId>
+    <artifactId>manual</artifactId>
+    <name>Apache Karaf :: Cave :: Manual</name>
+    <packaging>war</packaging>
+
+    <properties>
+        <manual.dir>${project.build.directory}/manual</manual.dir>
+        <manual>${manual.dir}/cave-manual-${project.version}</manual>
+        <scala.version>2.8.1</scala.version>
+        <scalata.version>1.3.2</scalata.version>
+        <cave.version>${project.version}</cave.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.fusesource.scalate</groupId>
+            <artifactId>scalate-wikitext</artifactId>
+            <version>${scalate.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-library</artifactId>
+            <version>${scala.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-compiler</artifactId>
+            <version>${scala.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>filter</id>
+                        <phase>generate-resources</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>${project.build.directory}/webapp</outputDirectory>
+                            <resources>
+                                <resource>
+                                    <directory>src/main/webapp</directory>
+                                    <filtering>true</filtering>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <!-- TODO: add generate-command-help goal of karaf-maven-plugin -->
+            <plugin>
+                <groupId>org.fusesource.scalate</groupId>
+                <artifactId>maven-scalate-plugin</artifactId>
+                <version>${scalate.version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-htmls</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>sitegen-no-fork</goal>
+                        </goals>
+                        <configuration>
+                            <warSourceDirectory>${project.build.directory}/webapp</warSourceDirectory>
+                        </configuration>
+                    </execution>
+                </executions>
+                <configuration>
+                    <remoteServerId>people.apache.org</remoteServerId>
+                    <remoteServerUrl>scp://people.apache.org//x1/www/karaf.apache.org/manual/cave/${cave.version}</remoteServerUrl>
+                </configuration>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.maven.wagon</groupId>
+                        <artifactId>wagon-ssh</artifactId>
+                        <version>1.0-beta-7</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>org.fusesource.wikitext</groupId>
+                        <artifactId>confluence-core</artifactId>
+                        <version>1.3</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.6</version>
+                <executions>
+                    <execution>
+                        <id>create-manual</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <mkdir dir="${manual.dir}"/>
+                                <move file="${project.build.directory}/sitegen/manual.html" tofile="${manual}.html"/>
+                                <echo message="Generating PDF using Prince XML (http://www.princexml.com/)"/>
+                                <exec executable="prince">
+                                    <arg value="${manual}.html"/>
+                                    <arg value="${manual}.pdf"/>
+                                    <arg value="--log"/>
+                                    <arg value="${project.build.directory}/prince.log"/>
+                                </exec>
+                                <attachartifact file="${manual}.html" type="html"/>
+                                <attachartifact file="${manual}.pdf" type="pdf"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.1</version>
+                <configuration>
+                    <webResources>
+                        <resource>
+                            <directory>${project.build.directory}/webapp/</directory>
+                        </resource>
+                    </webResources>
+                    <archive>
+                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+                    </archive>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>7.1.5.v20100705</version>
+                <configuration>
+                    <webAppSourceDirectory>${basedir}/src/main/webapp</webAppSourceDirectory>
+                    <systemProperties>
+                        <systemProperty>
+                            <name>scalate.editor</name>
+                            <value>${env.SCALATE_EDITOR}</value>
+                        </systemProperty>
+                        <systemProperty>
+                            <name>scalate.workdir</name>
+                            <value>${project.build.directory}/scalateWorkDir</value>
+                        </systemProperty>
+                        <systemProperty>
+                            <name>scalate.mode</name>
+                            <value>production</value>
+                        </systemProperty>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>bundle-manifest</id>
+                        <phase>process-classes</phase>
+                        <goals>
+                            <goal>manifest</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <supportedProjectTypes>
+                        <supportedProjectType>jar</supportedProjectType>
+                        <supportedProjectType>bundle</supportedProjectType>
+                        <supportedProjectType>war</supportedProjectType>
+                    </supportedProjectTypes>
+                    <instructions>
+                        <Import-Package>
+                            javax.servlet,
+                            javax.servlet.http,
+                            org.osgi.framework,
+                            org.osgi.service.packageadmin,
+                            javax.swing.tree,
+                            org.apache.commons.logging;provider=paxlogging;resolution:=optional,
+                            org.apache.log4j;provider=paxlogging;resolution:=optional,
+                            org.slf4j;provider=paxlogging;resolution:=optional;version="[1.5,2)",
+                        </Import-Package>
+                        <Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath>
+                        <Embed-Directory>WEB-INF/lib</Embed-Directory>
+                        <Embed-Dependencies>*;scope=compile|runtime</Embed-Dependencies>
+                        <Embed-Transitive>true</Embed-Transitive>
+                        <WebApp-Context>/cave-doc</WebApp-Context>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.fusesource.scalate</groupId>
+                <artifactId>maven-scalate-plugin</artifactId>
+                <version>${scalate.version}</version>
+            </plugin>
+        </plugins>
+    </reporting>
+
+</project>
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.scaml
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.scaml?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.scaml (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/default.scaml Thu Aug 25 15:04:29 2011
@@ -0,0 +1,116 @@
+-#
+-# Copyright (C) 2009-2010 the original author or authors.
+-# See the notice.md file distributed with this work for additional
+-# information regarding copyright ownership.
+-#
+-# Licensed under the Apache License, Version 2.0 (the "License");
+-# you may not use this file except in compliance with the License.
+-# You may obtain a copy of the License at
+-#
+-#     http://www.apache.org/licenses/LICENSE-2.0
+-#
+-# Unless required by applicable law or agreed to in writing, software
+-# distributed under the License is distributed on an "AS IS" BASIS,
+-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-# See the License for the specific language governing permissions and
+-# limitations under the License.
+-#
+
+-@ var body: String
+-@ var title : String = "Apache Karaf Cellar ${cellar.version} Guide"
+- response.setContentType("text/html")
+
+-# Only include the console if it's available and the engine is in dev mode.
+- val include_console = engine.isDevelopmentMode && engine.resourceLoader.exists("/org/fusesource/scalate/console/console_head.scaml")
+
+!!! Basic
+%html(lang="en")
+  %head
+    %meta(http-equiv="Content-Type" content="text/html; charset=utf-8")
+    %meta(name="description" content="description goes here")
+    %meta(name="keywords" content="keywords,goes,here")
+    %meta(name="author" content="The Apache Karaf Team")
+
+    - if (include_console)
+      = include("/org/fusesource/scalate/console/console_head.scaml")
+
+    %link(href={uri("/css/style.css")} rel="stylesheet" type="text/css")
+    %link(href={uri("/css/pygmentize.css")} rel="stylesheet" type="text/css")
+
+    - if (include_console)
+      %link(href={uri("/css/scalate/console.css")} rel="stylesheet" type="text/css")
+
+    %title
+      = title
+  
+  %body
+    %table{:width => "100%", :cellpadding => "0", :cellspacing => "0"}
+      %tr{:width => "100%"}
+        %td#cell-0-0{:colspan => "2"}
+          &nbsp;
+        %td#cell-0-1
+          &nbsp;
+        %td#cell-0-2{:colspan => "2"}
+          &nbsp;
+      %tr{:width => "100%"}
+        %td#cell-1-0
+          &nbsp;
+        %td#cell-1-1
+          &nbsp;
+        %td#cell-1-2
+          %div{:style => "padding: 5px;"}
+            #banner
+              = include("/_banner.ssp")
+            #top-menu
+              %table{:border => "0", :cellpadding => "1", :cellspacing => "0", :width => "100%"}
+                %tr
+                  %td
+                    %div{:align => "left"}
+                  %td
+                    %div{:align => "right"}
+                      = include("/_quicklinks.ssp")
+        %td#cell-1-3
+          &nbsp;
+        %td#cell-1-4
+          &nbsp;
+      %tr{:width => "100%"}
+        %td#cell-2-0{:colspan => "2"}
+          &nbsp;
+        %td#cell-2-1
+          %table
+            %tr{:height => "100%", :valign => "top"}
+              %td{:height => "100%"}
+                #wrapper-menu-page-right
+                  #wrapper-menu-page-top
+                    #wrapper-menu-page-bottom
+                      #menu-page
+                        = include("/_navigation.conf")
+              %td{:height =>"100%", :width => "100%"}
+                .wiki-content
+                  !~~ body
+        %td#cell-2-2{:colspan => "2"}
+          &nbsp;
+      %tr{:width => "100%"}
+        %td#cell-3-0
+          &nbsp;
+        %td#cell-3-1
+          &nbsp;
+        %td#cell-3-2
+          #footer
+            #site-footer
+              &copy; 2008-2011 The Apache Software Foundation
+              %br
+              Apache Karaf, Karaf, Apache, the Apache feather logo, and the Apache Karaf project logo are trademarks of The Apache Software Foundation.
+        %td#cell-3-3
+          &nbsp;
+        %td#cell-3-4
+          &nbsp;
+      %tr{:width => "100%"}
+        %td#cell-4-0{:colspan => "2"}
+          &nbsp;
+        %td#cell-4-1
+          &nbsp;
+        %td#cell-4-2{:colspan => "2"}
+          &nbsp;
+    - if (include_console)
+      = include("/org/fusesource/scalate/console/console.scaml")

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/print.ssp
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/print.ssp?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/print.ssp (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/scalate/layouts/print.ssp Thu Aug 25 15:04:29 2011
@@ -0,0 +1,817 @@
+<%--
+Copyright (C) 2009-2010 the original author or authors.
+See the notice.md file distributed with this work for additional
+information regarding copyright ownership.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+--%>
+<%@ var body: String %>
+<%@ var title: String = "Apache Karaf Cellar ${cellar.version}" %>
+<% escapeMarkup = false %>
+<!DOCTYPE html>
+<html>
+<head>
+  <style type="text/css">
+/*
+
+Copyright (c) 2005 Hakon Wium Lie and Bert Bos
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+*/
+html {
+  margin: 0; padding: 0;
+  font: 10pt/1.26 "Gill Sans", sans-serif;
+}
+
+h1, h2, h3, h4, h5, h6 {
+  font-family: "Gill Sans", sans-serif;
+  margin: 2em 0 0.5em 0;
+  page-break-after: avoid;
+}
+
+h1 {
+  font-size: 2.0em;
+  font-weight: 900;
+
+  margin: 0;
+  margin-left:-2cm;
+  margin-top:-1cm;
+  margin-bottom:1.5cm;
+  top: 0cm;
+  left: 0cm;
+  padding: 2cm;
+  padding-top: 0cm;
+  padding-bottom: 1cm;
+  background: #888;
+  border-bottom-right-radius: 2cm;
+  page-break-before: always;
+  page-break-inside: avoid;
+}
+
+@media screen, handheld {
+h1 {
+  margin-top:1cm;
+  background-image: url("chapter-rounded-bottom.png");
+  background-repeat: no-repeat;
+  background-position: bottom right;
+}
+div.page-reset > h1 {
+  margin-top:0cm;
+}
+}
+
+
+h2 {
+  font-size: 1.2em;
+  text-transform: uppercase;
+  font-weight: bold;
+}
+
+h3 {
+  font-size: 1em;
+  font-weight: bold;
+}
+
+q::before {
+  content: "\201C";
+}
+
+q::after {
+  content: "\201D";
+}
+
+p { margin: 0 }
+p + p { text-indent: 1.3em ; margin-top: 0.2em; }
+p.sidenote + p, p.caption, p.art { text-indent: 0 }
+
+p.author {
+  margin-top: 2em;
+  text-indent: 0;
+  text-align: right;
+}
+
+a { text-decoration: none; color: black }
+
+/* cross-references */
+
+a.pageref::after { content: " on page " target-counter(attr(href), page); }
+a.chapref::before { content: " Chapter " target-counter(attr(href), chapter) ", "; }
+a.figref { content: " Figure " target-counter(attr(href), figure); }
+a.tableref { content: " Table " target-counter(attr(href), figure); }
+a.listingref { content: " Listing " target-counter(attr(href), listing); }
+
+/* sidenotes */
+
+.sidenote {
+  float: left;
+  clear: left;
+  margin: 0 0 1em -41%;
+  width: 37%;
+  font-size: 0.9em;
+  font-style: normal;
+  text-indent: 0;
+  text-align: right;
+  page-break-inside: avoid;
+}
+
+/* sidebars */
+
+div.sidebar {
+  float: top-next;
+  margin: 1.2em 0 1.2em 0;
+  border: thin solid;
+  background: #CCC;
+  padding: 0.5em 1em;
+  page-break-inside: avoid;
+  column-count: 2;
+  column-gap: 1.5em;
+}
+
+div.sidebar h2 {
+  margin-top: 0;
+}
+
+/* frontpage */
+
+.title p{
+	font-size:22pt;
+  	font-family: "Gill Sans", sans-serif;
+  	text-align: center;
+}
+
+.copyright-section {
+	text-align: center;
+	font-size: 9pt;
+	page-break-after: always;
+	margin-top: 50pt;
+	margin-bottom: 20pt;
+}
+
+.toc-title {
+	font-size:18pt;
+  	font-family: "Gill Sans", sans-serif;
+  	text-align: left;
+  	margin-left:20pt;
+  	margin-bottom: 40pt;
+
+}
+
+/* figures, tables, and listings */
+
+div.confluenceTableSmall th.confluenceTh {
+  font-size: 11px;
+}
+
+div.confluenceTableSmall td.confluenceTd {
+  font-size: 7px;
+}
+
+div.figure {
+  margin: 1em 0;
+  counter-increment: figure;
+}
+
+div.figure .caption, div.table .caption {
+  font-size: 0.9em;
+  font-style: italic;
+}
+
+div.figure .caption::before {
+  content: "Figure " counter(figure) ". ";
+  font-weight: bold;
+  font-style: normal;
+}
+
+div.table .caption::before {
+  content: "Table " counter(table) ". ";
+  font-weight: bold;
+  font-style: normal;
+}
+
+div.table {
+  margin: 1em 0;
+  counter-increment: table;
+}
+
+div.table th {
+  text-align: left;
+}
+
+table th, table td {
+  text-align: left;
+  padding-right: 1em;
+  page-break-inside: avoid;
+}
+
+table th {
+  border-top: thin solid;
+  border-bottom: thin solid;
+  padding-top: 0.2em;
+  padding-bottom: 0.2em;
+}
+table td {
+  border-top: none;
+  border-bottom: thin dotted;
+  padding-top: 0.2em;
+  padding-bottom: 0.2em;
+}
+
+div.Scrollbar {
+	display: none;
+}
+
+
+/* Weird div.codeHeader a b::before would be a better selection
+   but prince does not properly match it.. Firefox does. */
+div.codeHeader::before {
+  content: "Listing " counter(listing) ". ";
+  font-weight: bold;
+  font-style: normal;
+}
+div.codeHeader a b {
+  font-style: italic;
+  font-weight: normal;
+}
+div.codeHeader {
+  font-size: 0.9em;
+  counter-increment: listing;
+}
+div.code {
+	border: 1px dashed #c0c0c0;
+    font-size: 12px;
+	font-family: Courier;
+    margin: 5px;
+	line-height: 13px;
+	padding: 3px;
+	background-color: #f8f8f8;
+
+}
+
+
+@page {
+  margin: 2cm;
+  size: 7in 9.25in;
+
+  @footnotes {
+    border-top: thin solid black;
+    padding-top: 0.3em;
+    margin-top: 0.6em;
+  }
+}
+
+
+/* define default page and names pages: cover, blank, frontmatter */
+div.page-reset {
+    counter-reset: page 1;
+}
+
+@page :left {
+  @top-left-corner {
+    font-weight: 900; font: 9pt "Gill Sans", serif;
+    content: counter(page);
+    text-align: left;
+    margin-left: 1cm;
+    visibility: hidden;
+  }
+  @top-left {
+    font-weight: 900;
+    font: 9pt "Gill Sans", serif; white-space: pre; text-transform: uppercase; letter-spacing: 0.1em;
+    content: string(header, first);
+    visibility: hidden;
+  }
+  @bottom-left-corner {
+    font-weight: 900; font: 9pt "Gill Sans", serif;
+    content: counter(page);
+    text-align: left;
+    margin-left: 1cm;
+  }
+  @bottom-left {
+    font-weight: 900;
+    font: 9pt "Gill Sans", serif; white-space: pre; text-transform: uppercase; letter-spacing: 0.1em;
+    content: string(header, first);
+  }
+}
+
+@page :right {
+  @top-right-corner {
+    font-weight: 900; font: 9pt "Gill Sans", serif;
+    content: counter(page);
+    text-align: left;
+    margin-left: 1cm;
+    visibility: hidden;
+  }
+  @top-right {
+    font-weight: 900;
+    font: 9pt "Gill Sans", serif; white-space: pre; text-transform: uppercase; letter-spacing: 0.1em;
+    content: string(header, first)
+    visibility: hidden;
+  }
+  @bottom-right-corner {
+    font-weight: 900; font: 9pt "Gill Sans", serif;
+    content: counter(page);
+    text-align: right;
+    margin-right: 1cm;
+  }
+  @bottom-right {
+    font-weight: 900; font: 9pt "Gill Sans", serif;
+    white-space: pre; text-transform: uppercase; letter-spacing: 0.1em;
+    content: string(header, first)
+  }
+}
+
+/*
+  In theory we should be able to use the :first selector so taht
+  we can put the page numbering on the bottom of the first page of the chapter
+  but have the rest of the pages number at the top.  But this does not seem
+  to work.  See http://www.princexml.com/doc/6.0/page-selectors/
+
+  So for now just always number at the bottom :(
+*/
+/*
+div.chapter { page: bottom-number; }
+@page bottom-number :first {
+  @top-left {
+    visibility: hidden;
+  }
+  @bottom-left {
+    visibility: visible;
+  }
+  @top-right {
+    visibility: hidden;
+  }
+  @bottom-right {
+    visibility: visible;
+  }
+}
+*/
+
+@page cover { margin: 0; }
+
+@page frontmatter :left {
+  @bottom-left-corner {
+    content: counter(page, lower-roman);
+  }
+  @bottom-left-corner {
+    content: counter(page, lower-roman);
+  }
+}
+
+@page frontmatter :right {
+  @bottom-right-corner {
+    content: counter(page, lower-roman);
+  }
+  @bottom-right-corner {
+    content: counter(page, lower-roman);
+  }
+}
+
+@page blank :left {
+  @top-left { visibility: hidden; }
+  @bottom-left { visibility: hidden; }
+  @top-left-corner { visibility: hidden; }
+  @bottom-left-corner { visibility: hidden; }
+}
+
+@page blank :right {
+  @top-right { visibility: hidden; }
+  @bottom-right { visibility: hidden; }
+  @top-right-corner { visibility: hidden; }
+  @bottom-right-corner { visibility: hidden; }
+}
+
+/* footnotes */
+.footnote {
+  display: none;                   /* default rule */
+
+  display: prince-footnote;        /* prince-specific rules */
+  position: footnote;
+  footnote-style-position: inside;
+
+  counter-increment: footnote;
+  margin-left: 1.4em;
+  font-size: 90%;
+  line-height: 1.4;
+}
+
+.footnote::footnote-call {
+  vertical-align: super;
+  font-size: 80%;
+}
+
+.footnote::footnote-marker {
+  vertical-align: super;
+  color: green;
+  padding-right: 0.4em;
+}
+
+/* Confluence contents to hide */
+#labels-section {
+	display: none;
+}
+#comments-section {
+	display: none;
+}
+#footer {
+	display: none;
+}
+.hidden {
+	display: none;
+}
+
+/*
+   A book consists of different types of sections. We propose to use
+   DIV elements with these class names:
+
+    frontcover
+    halftitlepage: contains the title of the book
+    titlepage: contains the title of the book, name of author(s) and publisher
+    imprint: left page with copyright, publisher, library printing information
+    dedication: right page with short dedication
+    foreword: written by someone other than the author(s)
+    toc: table of contents
+    preface: preface, including acknowledgements
+    chapter: each chapter is given its own DIV element
+    references: contains list of references
+    appendix: each appendix is given its own
+    bibliography
+    glossary
+    index
+    colophon: describes how the book was produced
+    backcover
+
+   A book will use several of the types listed above, but few books
+   will use all of them.
+*/
+
+/* which section uses which named page */
+
+div.halftitlepage, div.titlepage, div.imprint, div.dedication { page: blank }
+div.foreword, div.toc, div.preface { page: frontmatter }
+
+
+/* page breaks */
+div.frontcover, div.halftitlepage, div.titlepage { page-break-before: right }
+div.imprint { page-break-before: always; }
+div.chapter { page-break-before: always; }
+div.dedication, div.foreword, div.toc, div.preface, div.reference,
+div.appendix, div.bibliography, div.glossary, div.index, div.colophon {
+  page-break-before: always
+}
+div.backcover { page-break-before: left }
+
+/* titlepage, halftitlepage */
+
+div.titlepage h1, div.halftitlepage h1 { margin-bottom: 2em; }
+div.titlepage h2, div.halftitlepage h2 { font-size: 1.2em; margin-bottom: 3em; }
+div.titlepage h3, div.halftitlepage h3 { font-size: 1em; margin-bottom: 3em; }
+div.titlepage p, div.halftitlepage p {
+  font-size: 1.4em;
+  font-weight: bold;
+  margin: 0; padding: 0;
+}
+
+
+/* TOC */
+
+ul.toc, ul.toc ul {
+  list-style-type: none;
+  margin: 0; padding: 0;
+  margin-left: 3cm;
+}
+ul.toc ul {
+  margin-left: 1em;
+  font-weight: normal;
+}
+ul.toc > li {
+  font-weight: bold;
+  margin-bottom: 0.5em;
+}
+ul.toc a::after {
+  content: leader('.') target-counter(attr(href), page);
+  font-style: normal;
+}
+ul.toc > li.frontmatter a::after {
+  content: leader('.') target-counter(attr(href), page, lower-roman);
+  font-style: normal;
+}
+ul.toc > li.endmatter a::after {
+  content: leader('.') target-counter(attr(href), page);
+  font-style: normal;
+}
+ul.toc > li.chapter::before {
+  content: "Chapter " counter(toc-chapter, decimal);
+  display: block;
+  margin: 1em 0 0.1em -2.5cm;
+  font-weight: normal;
+  counter-increment: toc-chapter;
+  page-break-after: avoid;
+}
+
+/* chapter numbers */
+
+div.chapter { counter-increment: chapter; }
+div.chapter h1::before {
+  text-transform: uppercase;
+  letter-spacing: 0.15em;
+  content: "Chapter  " counter(chapter) " \A\B0 \B0 \B0 \B0\A";
+  white-space: pre;
+  font-size: 50%;
+}
+
+div.frontcover h1::before, div.titlepage h1::before, div.halftitlepage h1::before {
+  content: normal; /* that is, none */
+}
+
+h1 { string-set: header content();}
+div.chapter h1 { string-set: header "Chapter " counter(chapter) " - " content(); }
+
+/* index */
+
+ul.index {
+  list-style-type: none;
+  margin: 0; padding: 0;
+  column-count: 2;
+  column-gap: 1em;
+}
+
+ul.index a::after { content: ", " target-counter(attr(href), page); }
+
+
+span.element, span.attribute {
+  text-transform: uppercase;
+  font-weight: bold;
+  font-size: 80%;
+}
+span.property { font-weight: bold }
+code, span.css, span.value, span.declaration {
+  font: 90% "Lucida Console", "Lucida Sans Typewriter", monospace;
+}
+
+
+@media screen, handheld {
+  html {font: 14px "Gill Sans", sans-serif; }
+  h1 { margin-bottom: 0.5em }
+  div.frontcover, div.halftitlepage, div.titlepage, div.imprint,
+  div.dedication, div.foreword, div.toc, div.index { display: none }
+  body {
+      margin: 0cm;
+      margin-left: 2cm;
+      margin-right: 2cm;
+  }
+}
+
+/*
+ * Enhancements to the take advantage of some of the style markup that
+ * Confluence generates
+ */
+a sup img { visibility: hidden; position: absolute;}
+
+img {
+  prince-image-resolution:150dpi;
+}
+
+table {
+  font: "Lucida Console", "Lucida Sans Typewriter", monospace;
+}
+
+table td {
+  font-size: 10pt;
+}
+
+pre {
+   white-space: pre-wrap;
+}
+
+.codeContent {
+  font-size: 80%;
+}
+.code {
+}
+.code-keyword {
+  color: #000091;
+  background-color: inherit;
+}
+
+.code-object {
+  color: #910091;
+  background-color: inherit;
+}
+
+.code-quote {
+  color: #009100;
+  background-color: inherit;
+}
+
+.code-comment {
+  color: #808080;
+  background-color: inherit;
+}
+
+
+.code-xml .code-keyword {
+  color: inherit;
+  font-weight: bold;
+}
+
+.code-tag {
+  color: #000091;
+  background-color: inherit;
+}
+
+.noteMacro { border-color: #F0C000; background-color: #FFFFCE;}
+.warningMacro { border-color: #CC0000; background-color: #FFCCCC }
+.infoMacro { border-color: #3c78b5; background-color: #D8E4F1; }
+.tipMacro { border-color: #090; background-color: #dfd;}
+.noteMacro, .warningMacro, .infoMacro, .tipMacro, .informationMacroPadding {
+  border: thin solid;
+  float: top-next;
+  margin: 1em 0 1.2em 0;
+  padding: 0.5em;
+  column-count: 2;
+  column-gap: 1.5em;
+  width: 100%;
+}
+table.infoMacro td, table.warningMacro td, table.tipMacro td, table.noteMacro td, table.sectionMacro td {
+    border: none;
+}
+table.infoMacro p, table.warningMacro p, table.tipMacro p, table.noteMacro p, table.sectionMacro p {
+    font-size:x-small;
+    margin-top: 1em;
+}
+  </style>
+  <style type="text/css">
+.syntax .hll { background-color: #ffffcc }
+.syntax  { background: #f0f0f0; }
+.syntax .c { color: #60a0b0; font-style: italic } /* Comment */
+.syntax .err { border: 1px solid #FF0000 } /* Error */
+.syntax .k { color: #007020; font-weight: bold } /* Keyword */
+.syntax .o { color: #666666 } /* Operator */
+.syntax .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
+.syntax .cp { color: #007020 } /* Comment.Preproc */
+.syntax .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
+.syntax .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
+.syntax .gd { color: #A00000 } /* Generic.Deleted */
+.syntax .ge { font-style: italic } /* Generic.Emph */
+.syntax .gr { color: #FF0000 } /* Generic.Error */
+.syntax .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.syntax .gi { color: #00A000 } /* Generic.Inserted */
+.syntax .go { color: #808080 } /* Generic.Output */
+.syntax .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.syntax .gs { font-weight: bold } /* Generic.Strong */
+.syntax .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.syntax .gt { color: #0040D0 } /* Generic.Traceback */
+.syntax .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
+.syntax .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
+.syntax .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
+.syntax .kp { color: #007020 } /* Keyword.Pseudo */
+.syntax .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
+.syntax .kt { color: #902000 } /* Keyword.Type */
+.syntax .m { color: #40a070 } /* Literal.Number */
+.syntax .s { color: #4070a0 } /* Literal.String */
+.syntax .na { color: #4070a0 } /* Name.Attribute */
+.syntax .nb { color: #007020 } /* Name.Builtin */
+.syntax .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
+.syntax .no { color: #60add5 } /* Name.Constant */
+.syntax .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.syntax .ni { color: #d55537; font-weight: bold } /* Name.Entity */
+.syntax .ne { color: #007020 } /* Name.Exception */
+.syntax .nf { color: #06287e } /* Name.Function */
+.syntax .nl { color: #002070; font-weight: bold } /* Name.Label */
+.syntax .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.syntax .nt { color: #062873; font-weight: bold } /* Name.Tag */
+.syntax .nv { color: #bb60d5 } /* Name.Variable */
+.syntax .ow { color: #007020; font-weight: bold } /* Operator.Word */
+.syntax .w { color: #bbbbbb } /* Text.Whitespace */
+.syntax .mf { color: #40a070 } /* Literal.Number.Float */
+.syntax .mh { color: #40a070 } /* Literal.Number.Hex */
+.syntax .mi { color: #40a070 } /* Literal.Number.Integer */
+.syntax .mo { color: #40a070 } /* Literal.Number.Oct */
+.syntax .sb { color: #4070a0 } /* Literal.String.Backtick */
+.syntax .sc { color: #4070a0 } /* Literal.String.Char */
+.syntax .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
+.syntax .s2 { color: #4070a0 } /* Literal.String.Double */
+.syntax .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
+.syntax .sh { color: #4070a0 } /* Literal.String.Heredoc */
+.syntax .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
+.syntax .sx { color: #c65d09 } /* Literal.String.Other */
+.syntax .sr { color: #235388 } /* Literal.String.Regex */
+.syntax .s1 { color: #4070a0 } /* Literal.String.Single */
+.syntax .ss { color: #517918 } /* Literal.String.Symbol */
+.syntax .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.syntax .vc { color: #bb60d5 } /* Name.Variable.Class */
+.syntax .vg { color: #bb60d5 } /* Name.Variable.Global */
+.syntax .vi { color: #bb60d5 } /* Name.Variable.Instance */
+.syntax .il { color: #40a070 } /* Literal.Number.Integer.Long */
+
+
+/* don't highlight errors */
+.syntax .err {
+  border: none;
+}
+
+.syntax {
+  font-size: .9em;
+  font-family:Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
+  background-color: #F8F8FF;
+
+  overflow:auto;
+  -moz-background-clip:border;
+  -moz-background-inline-policy:continuous;
+  -moz-background-origin:padding;
+  margin: 1em 0 1em 0;
+  border:1px solid #DDDDDD;
+
+  border-top-left-radius: 8px; -webkit-border-top-left-radius: 8px; -moz-border-radius-topleft: 8px;
+  border-top-right-radius: 8px; -webkit-border-top-right-radius: 8px; -moz-border-radius-topright: 8px;
+  border-style: solid;  border-width: 1px; border-color: #dedede !important;
+  padding: 1em;
+}
+.syntax .linenodiv  {
+  background-color:#ECECEC;
+  border-right:1px solid #DDDDDD;
+  color:#AAAAAA;
+  padding: .5em;
+  text-align:right;
+}
+.syntax .highlight  {
+}
+.syntax pre {
+  margin:0;
+}
+
+pre.syntax {
+  padding: .5em;
+  background-color: #F8F8FF; overflow:auto;
+}
+
+.syntax code {
+  font-family:Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
+  font-size: 10pt;
+}
+
+div.compare { width: 700px; }
+div.compare div.compare-left { float:left; width:340px; padding:5px; margin-top: 15px; }
+div.compare div.compare-right { float:right; width:340px; padding:5px; margin-top: 15px; }
+div.compare div h3 {
+  margin-left: 15px;
+  padding: 5px 15px;
+  display: inline;
+  font-size: .8em;
+  color: #666;
+
+  border-top: 1px solid #ccc; -moz-border-top-colors: #ccc white white #e5e5e5;
+  border-left: 1px solid #ccc; -moz-border-left-colors: #ccc white white #e5e5e5;
+  border-right: 1px solid #ccc;-moz-border-right-colors: #ccc white white #e5e5e5;
+  border-top-left-radius: 8px; -webkit-border-top-left-radius: 8px;  -moz-border-radius-topleft: 8px;
+  border-top-right-radius: 8px; -webkit-border-top-right-radius: 8px; -moz-border-radius-topright: 8px;
+}
+div.compare div div {
+  margin: 5px 0px 0px 0px;
+}
+.clear {
+  clear:both;
+}
+.wide div.compare div.compare-left { float:none; width:700px; }
+.wide div.compare div.compare-right { float:none; width:700px; }
+
+  </style>
+
+  <title>${title}</title>
+</head>
+<body>
+  <div id="titlepage">
+    <div id="title">Apache Karaf Cellar</div>
+    <div id="subtitle">Version ${cellar.version}</div>
+  </div>
+  <div id="main">
+    <%= body %>
+  </div>
+</body>
+</html>

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/web.xml?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/web.xml (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/WEB-INF/web.xml Thu Aug 25 15:04:29 2011
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Copyright (C) 2009-2010 the original author or authors.
+    See the notice.md file distributed with this work for additional
+    information regarding copyright ownership.
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+        version="2.5">
+
+  <display-name>Apache Karaf Cave Documentation</display-name>
+
+  <description>
+    Apache Karaf Cave Documentation
+  </description>
+
+  <filter>
+    <filter-name>TemplateEngineFilter</filter-name>
+    <filter-class>org.fusesource.scalate.servlet.TemplateEngineFilter</filter-class>
+  </filter>
+  <filter-mapping>
+    <filter-name>TemplateEngineFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
+  <welcome-file-list>
+    <welcome-file>index.conf</welcome-file>
+  </welcome-file-list>
+
+  <error-page>
+    <error-code>500</error-code>
+    <location>/WEB-INF/scalate/errors/500.scaml</location>
+  </error-page>
+</web-app>

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/developer-guide/index.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/developer-guide/index.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/developer-guide/index.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/developer-guide/index.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,5 @@
+h1. Apache Karaf Cave Developer Guide
+
+* [Building Karaf Cave|/developer-guide/building]
+* [Implementing backend|/developer-guide/backend]
+* [REST client|/developer-guide/rest]
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/index.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/index.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/index.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/index.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,7 @@
+h1. Apache Karaf Cave
+
+This project contains documentation about Apache Karaf Cave.
+
+* [Karaf Cave Overview|overview]
+* [User Guide|user-guide/index]
+* [Developer Guide|developer-guide/index]
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/manual.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/manual.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/manual.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/manual.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,31 @@
+{attributes:layout=/WEB-INF/scalate/layouts/print.ssp}
+
+{div:class=title}
+\\
+\\
+\\
+\\
+Apache Karaf Cave
+User Guide
+\\
+\\
+\\
+\\
+{div}
+
+{div:class=copyright-section}
+Copyright 2011 The Apache Software Foundation
+{div}
+
+{div:class=toc-title}
+Table of contents
+{div}
+
+{toc:maxLevel=2}
+
+h1. Overview
+{include:overview.conf}
+
+h1. User Guide
+
+h1. Developer Guide
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/overview.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/overview.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/overview.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/overview.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,29 @@
+h1. Apache Karaf Cave overview
+
+Apache Karaf Cave is an Apache Karaf sub-project.
+
+It provides an OSGi Bundle Repository (OBR) and Karaf Features Repository (KFR).
+
+OBR provides a service that can automatically install a bundle, with its deployment dependencies, from a bundle
+repository.
+
+Apache Karaf Cave provides the following features:
+
+* *Storage*: Karaf Cave includes a storage backend. The default one is a simple filesystem backend. As the Cave backend
+is designed in a plugin way, you can implement your own backend (for instance, JDBC or LDAP backend).
+* *OBR Metadata Generation*: Karaf Cave automatically creates the OBR metadata for you, using the artifacts presents
+in the Cave repository storage.
+* *OBR Registration*: Karaf Cave allows you to directly register a Cave repository into an OBR RepositoryAdmin OSGi
+service.
+* *Artifact Upload*: Users can upload OSGi bundle in a Cave repository. It supports URLs like mvn:groupId/artifactId/version,
+file:, http:, etc.
+* *Repository proxy*: Karaf Cave is able to proxy an existing repository, for instance an existing Maven repository.
+The artifacts are located on the "external" repository, Cave handles the OBR metadata. Cave supports file: and http:
+URLs, it means that Cave is able to browse a remote HTTP Maven repository for instance.
+* *Repository population*: Karaf Cave is able to get artifacts present on an "external" repository (local file: or
+remote http:), looking for OSGi bundles, and copy the artifacts in the Cave repository storage.
+
+Karaf Cave provides two components:
+
+* the cave-server is the OBR and KFR server, including the storage, the management layer, the REST service layer, etc.
+* the cave-client is a local OBR service proxy that use a remote Cave OBR server.
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/adminsitrate-cave.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/adminsitrate-cave.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/adminsitrate-cave.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/adminsitrate-cave.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,9 @@
+h1. Administrate Cave Server
+
+When you install the Cave Server, it binds a set of JMX MBeans.
+
+These MBeans allow you to monitore and administrate the Cave Server.
+
+It means that you can manipulate Cave Repositories using a JMX client.
+
+TODO: complete with the MBeans detail.
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-client.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-client.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-client.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-client.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,7 @@
+h1. Cave Client
+
+The Cave Client is an implementation of the OBR RepositoryAdmin OSGi service which proxy all calls to a Cave Server.
+
+For the Karaf instance, the OBR service looks local, but in fact, each method call is forwarded to the Cave Server.
+
+TODO: complete when the Cave Client will be fully implemented.
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-repository.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-repository.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-repository.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/cave-repository.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,109 @@
+h1. Cave Repository
+
+A Karaf Cave Repository is a container for:
+
+* the OSGi bundles (jar files)
+* the OBR metadata (repository.xml)
+
+By default, a Cave Repository uses a filesystem backend for the storage, the directory used is KARAF_BASE/case.
+
+You can change the storage location in the etc/org.apache.karaf.cave.server.storage.cfg configuration file:
+
+{code}
+# default value
+storage.location=cave
+# custom storage location
+#storage.location=/path/to/your/storage/folder
+{code}
+
+h2. Create a Cave Repository
+
+The cave:create-repository command create a Cave Repository:
+
+{code}
+karaf@root> cave:create-repository cave-repo
+{code}
+
+A Cave Repository is identified by a name, cave-repo in our example.
+
+Karaf Cave will create the repository storage. In this example, you can see a cave-repo folder in the storage location:
+
+{code}
+shell$ ls cave/
+cave-repo
+{code}
+
+If you want to use an existing directory, and avoid Cave to create one in the storage location, you can use the -l or
+--location option:
+
+{code}
+karaf@root> cave:create-repository -l /home/jbonofre/.m2/repository m2
+{code}
+
+You can also generate the OBR metadata at creation time using the -s or --scan option. Karaf Cave scans the repository
+storage, looking for OSGi bundles, and create the OBR metadata:
+
+{code}
+karaf@root> cave:create-repository -s -l /home/jbonofre/.m2/repository m2
+{code}
+
+In the same way, you can register the Cave Repository in the OBR service directly at creation time. For instance, you
+can combine the three options to:
+
+1. create the Cave Repository using an existing location
+2. scan for OSGi bundle and create the OBR metadata
+3. register the Cave repository in the OBR service
+
+{code}
+karaf@root> cave:create-repository -s -r -l /home/jbonofre/.m2/repository m2
+{code}
+
+h2. List of Cave Repositories
+
+You can list the Cave Repositories:
+
+{code}
+karaf@root> cave:list-repositories
+Name                 Location
+[cave-repo]          [/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo]
+[m2]                 [/home/jbonofre/.m2/repository]
+{code}
+
+h2. Remove and destroy a Cave Repository
+
+You can remove a Cave Repository from the repositories registry:
+
+{code}
+karaf@root> cave:remove-repository cave-repo
+{code}
+
+The Cave Repository storage won't be removed. It means that the artifacts will stay in the storage folder.
+
+If you want to destroy a Cave Repository, including the artifacts and the storage folder, you have to use:
+
+{code}
+karaf@root> cave:destroy-repository cave-repo
+{code}
+
+h2. Generate OBR metadata
+
+You can generate the OBR metadata:
+
+{code}
+karaf@root> cave:scan-repository cave-repo
+{code}
+
+Cave will scan the Cave Repository storage, looking for OSGi bundle, and generate the OBR metadata.
+
+h2. Register Cave Repository in the OBR service
+
+Once you have generated the OBR metadata, you can register the Cave Repository in the OBR service:
+
+{code}
+karaf@root> cave:register-repository cave-repo
+{code}
+
+You are now ready to use the [OBR commands|/user-guide/obr-command].
+
+You can also use a remote Cave server via the [HTTP Wrapper Service|/user-guide/http-wrapper]
+or the [Cave Client|/user-guide/client].
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/http-wrapper.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/http-wrapper.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/http-wrapper.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/http-wrapper.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,167 @@
+h1. HTTP Wrapper Service
+
+When you install the Cave Server, it starts a HTTP service wrapper.
+
+It means that all artifacts and OBR metadata presents locally are exposed in HTTP.
+
+h2. OBR metadata access
+
+Assuming that you have the following Cave Repositories:
+
+{code}
+karaf@root> cave:list-repositories
+Name                 Location
+[cave-repo]          [/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo]
+[m2]                 [/home/jbonofre/.m2/repository]
+{code}
+
+You can access the OBR metadata using the following URL in your favorite browser:
+
+{code}
+http://localhost:8181/cave/m2-repository.xml
+{code}
+
+and
+
+{code}
+http://localhost:8181/cave/cave-repo-repository.xml
+{code}
+
+NB: the port 8181 is the default one of the Karaf HTTP service.
+
+To access the OBR metadata, the URL format is:
+
+{code}
+http://[cave_server_hostname]:[http_service_port]/cave/[cave_repository_name]-repository.xml
+{code}
+
+It means that you can register the Cave Repositories on a remote Karaf instance.
+
+In the remote Karaf instance, you just have to install the obr feature and register the HTTP Wrapper repository.xml URL:
+
+{code}
+karaf@other> features:install obr
+karaf@other> obr:addurl http://cave_server:8181/cave/cave-repo-repository.xml
+{code}
+
+h2. OSGi bundles access
+
+Cave HTTP Wrapper Service also provide the OSGi bundles via HTTP.
+
+For instance, you have register the cave-repo Cave Repository in the OBR service:
+
+{code}
+karaf@root> cave:register-repository cave-repo
+{code}
+
+So you have the following bundles available in the OBR service:
+
+{code}
+karaf@root> obr:list
+org.apache.servicemix.bundles.commons-dbcp - Apache ServiceMix :: Bundles :: commons-dbcp (1.4.0.1)
+org.apache.servicemix.bundles.commons-pool - Apache ServiceMix :: Bundles :: commons-pool (1.5.4.3)
+{code}
+
+If we take a look on the detail of the commons-dbcp bundle:
+
+{code}
+karaf@root> obr:info org.apache.servicemix.bundles.commons-dbcp
+--------------------------------------------
+Apache ServiceMix :: Bundles :: commons-dbcp
+--------------------------------------------
+id: org.apache.servicemix.bundles.commons-dbcp/1.4.0.1
+description: This OSGi bundle wraps commons-dbcp 1.4 jar file.
+documentation: http://www.apache.org/
+symbolicname: org.apache.servicemix.bundles.commons-dbcp
+presentationname: Apache ServiceMix :: Bundles :: commons-dbcp
+license: http://www.apache.org/licenses/LICENSE-2.0.txt
+uri: file:/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo/org.apache.servicemix.bundles.commons-dbcp-1.4.0.1.jar
+size: 159721
+version: 1.4.0.1
+Requires:
+   package:(&(package=javax.naming))
+   package:(&(package=javax.naming.spi))
+   package:(&(package=javax.sql))
+   package:(&(package=javax.transaction))
+   package:(&(package=javax.transaction.xa))
+   package:(&(package=org.apache.commons.pool)(version>=1.3.0)(!(version>=2.0.0)))
+   package:(&(package=org.apache.commons.pool.impl)(version>=1.3.0)(!(version>=2.0.0)))
+   package:(&(package=org.xml.sax))
+   package:(&(package=org.xml.sax.helpers))
+Capabilities:
+   bundle:{manifestversion=2, symbolicname=org.apache.servicemix.bundles.commons-dbcp, presentationname=Apache ServiceMix :: Bundles :: commons-dbcp, version=1.4.0.1}
+   package:{package=org.apache.commons.dbcp.cpdsadapter, uses:=org.apache.commons.dbcp,javax.naming,javax.sql,org.apache.commons.pool.impl,org.apache.commons.pool,javax.naming.spi, version=1.4.0}
+   package:{package=org.apache.commons.dbcp, uses:=org.apache.commons.pool.impl,org.apache.commons.pool,javax.sql,javax.naming,javax.naming.spi,org.apache.commons.jocl,org.xml.sax, version=1.4.0}
+   package:{package=org.apache.commons.dbcp.managed, uses:=org.apache.commons.dbcp,javax.sql,org.apache.commons.pool.impl,javax.transaction,org.apache.commons.pool,javax.transaction.xa, version=1.4.0}
+   package:{package=org.apache.commons.dbcp.datasources, uses:=javax.sql,org.apache.commons.pool,javax.naming,org.apache.commons.dbcp,javax.naming.spi,org.apache.commons.pool.impl, version=1.4.0}
+   package:{package=org.apache.commons.jocl, uses:=org.xml.sax.helpers,org.xml.sax, version=1.4.0}
+{code}
+
+we can see that the URI is file:/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo/org.apache.servicemix.bundles.commons-dbcp-1.4.0.1.jar.
+
+But the HTTP Wrapper Service also expose the bundle on:
+
+{code}
+http://localhost:8181/cave/org.apache.servicemix.bundles.commons-dbcp-1.4.0.1.jar
+{code}
+
+In fact, Cave handles bundle URI relatively to the repository.
+
+So, it means that, if you register the cave-repo Cave Repository on a remote Karaf instance:
+
+{code}
+karaf@other> features:install obr
+karaf@other> obr:addurl http://cave_server:8181/cave/cave-repo-repository.xml
+{code}
+
+you can take a look on the commons-dbcp details:
+
+{code}
+karaf@root> obr:info org.apache.servicemix.bundles.commons-dbcp
+--------------------------------------------
+Apache ServiceMix :: Bundles :: commons-dbcp
+--------------------------------------------
+id: org.apache.servicemix.bundles.commons-dbcp/1.4.0.1
+description: This OSGi bundle wraps commons-dbcp 1.4 jar file.
+documentation: http://www.apache.org/
+symbolicname: org.apache.servicemix.bundles.commons-dbcp
+presentationname: Apache ServiceMix :: Bundles :: commons-dbcp
+license: http://www.apache.org/licenses/LICENSE-2.0.txt
+uri: http://cave_server:8181/cave/org.apache.servicemix.bundles.commons-dbcp-1.4.0.1.jar
+size: 159721
+version: 1.4.0.1
+Requires:
+   package:(&(package=javax.naming))
+   package:(&(package=javax.naming.spi))
+   package:(&(package=javax.sql))
+   package:(&(package=javax.transaction))
+   package:(&(package=javax.transaction.xa))
+   package:(&(package=org.apache.commons.pool)(version>=1.3.0)(!(version>=2.0.0)))
+   package:(&(package=org.apache.commons.pool.impl)(version>=1.3.0)(!(version>=2.0.0)))
+   package:(&(package=org.xml.sax))
+   package:(&(package=org.xml.sax.helpers))
+Capabilities:
+   bundle:{manifestversion=2, symbolicname=org.apache.servicemix.bundles.commons-dbcp, presentationname=Apache ServiceMix :: Bundles :: commons-dbcp, version=1.4.0.1}
+   package:{package=org.apache.commons.dbcp.cpdsadapter, uses:=org.apache.commons.dbcp,javax.naming,javax.sql,org.apache.commons.pool.impl,org.apache.commons.pool,javax.naming.spi, version=1.4.0}
+   package:{package=org.apache.commons.dbcp, uses:=org.apache.commons.pool.impl,org.apache.commons.pool,javax.sql,javax.naming,javax.naming.spi,org.apache.commons.jocl,org.xml.sax, version=1.4.0}
+   package:{package=org.apache.commons.dbcp.managed, uses:=org.apache.commons.dbcp,javax.sql,org.apache.commons.pool.impl,javax.transaction,org.apache.commons.pool,javax.transaction.xa, version=1.4.0}
+   package:{package=org.apache.commons.dbcp.datasources, uses:=javax.sql,org.apache.commons.pool,javax.naming,org.apache.commons.dbcp,javax.naming.spi,org.apache.commons.pool.impl, version=1.4.0}
+   package:{package=org.apache.commons.jocl, uses:=org.xml.sax.helpers,org.xml.sax, version=1.4.0}
+{code}
+
+we can see that the URI is http://cave_server:8181/cave/org.apache.servicemix.bundles.commons-dbcp-1.4.0.1.jar.
+
+It means that we can use directly obr:deploy command:
+
+{code}
+karaf@root> obr:deploy org.apache.servicemix.bundles.commons-dbcp
+Target resource(s):
+-------------------
+   Apache ServiceMix :: Bundles :: commons-dbcp (1.4.0.1)
+
+Required resource(s):
+---------------------
+   Apache ServiceMix :: Bundles :: commons-pool (1.5.4.3)
+
+Deploying...done.
+{code}

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/index.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/index.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/index.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/index.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,11 @@
+h1. Apache Karaf Cave User Guide
+
+* [Installing Karaf Cave|/user-guide/installation]
+* [Cave Repository|/user-guide/cave-repository]
+* [Populate a Cave Repository|/user-guide/populate-repository]
+* [Proxy Repository|/user-guide/proxy-repository]
+* [OBR commands|/user-guide/obr-commands]
+* [HTTP Wrapper Service|/user-guide/http-wrapper]
+* [REST service|/user-guide/rest-service]
+* [Cave Client|/user-guide/client]
+* [Administrate Cave Server|/user-guide/administrate-cave]
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/installation.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/installation.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/installation.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/installation.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,57 @@
+h1. Installation
+
+This chapter describes how to install Apache Karaf Cave into an existing Karaf based installation.
+
+h2. Pre-installation requirements
+
+As Cave is a Karaf sub-project, you need a running Karaf instance.
+
+Karaf Cave is provided under a Karaf features descriptor. The easiest way to install is just to have an internet
+connection from the Karaf running instance.
+
+h2. Registering Cave features
+
+Karaf Cave is provided as a Karaf features XML descriptor.
+
+Simply register the Cave features URL in your Karaf instance:
+
+{code}
+karaf@root> features:addurl mvn:org.apache.karaf.cave/apache-karaf-cave/3.0.0-SNAPSHOT/xml/features
+{code}
+
+Now you have Cave features available in your Karaf instance:
+
+{code}
+karaf@root> features:list|grep -i cave
+[uninstalled] [3.0.0-SNAPSHOT ] cave-server                   repo-0
+{code}
+
+h3. Starting Cave Server
+
+To start Cave, you have to install the cave-server feature:
+
+{code}
+karaf@root> features:install cave-server
+{code}
+
+NB: installation of the cave-server feature will install others features, such as obr, http, war, cxf. It could take
+several minutes depending of your network connection speed.
+
+You can see the Cave bundles installed:
+
+{code}
+karaf@root> la|grep -i cave
+[ 134] [Active     ] [            ] [       ] [   60] Apache Karaf :: Cave :: Server :: API (3.0.0.SNAPSHOT)
+[ 135] [Active     ] [Created     ] [       ] [   60] Apache Karaf :: Cave :: Server :: Storage (3.0.0.SNAPSHOT)
+[ 136] [Active     ] [Created     ] [       ] [   60] Apache Karaf :: Cave :: Server :: Management (3.0.0.SNAPSHOT)
+[ 137] [Active     ] [Created     ] [       ] [   60] Apache Karaf :: Cave :: Server :: Command (3.0.0.SNAPSHOT)
+[ 138] [Active     ] [            ] [       ] [   60] Apache Karaf :: Cave :: Server :: HTTP (3.0.0.SNAPSHOT)
+{code}
+
+The Cave commands are now available:
+
+{code}
+karaf@root> cave:<TAB>
+cave:create-repository      cave:destroy-repository     cave:list-repositories      cave:populate-repository
+cave:proxy-repository       cave:register-repository    cave:scan-repository        cave:upload-artifact
+{code}
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/obr-commands.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/obr-commands.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/obr-commands.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/obr-commands.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,150 @@
+h1. OBR Commands
+
+To register a Cave Repository in the OBR service, you have to use:
+
+{code}
+karaf@root> cave:register-repository cave-repo
+{code}
+
+Now, you can see the Cave Repository OBR metadata register in the OBR service:
+
+{code}
+karaf@root> obr:listurl
+file:/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo/repository.xml
+{code}
+
+And the Cave Repository OSGi bundles are available in the OBR service:
+
+{code}
+karaf@root> obr:list
+[...]
+slf4j.log4j12 - slf4j-log4j12 (1.6.1)
+slf4j.simple - slf4j-simple (1.6.1)
+org.springframework.aop - Spring AOP (3.0.5.RELEASE)
+org.springframework.asm - Spring ASM (3.0.5.RELEASE)
+org.springframework.beans - Spring Beans (3.0.5.RELEASE)
+org.springframework.context - Spring Context (3.0.5.RELEASE)
+org.springframework.core - Spring Core (3.0.5.RELEASE)
+org.springframework.expression - Spring Expression Language (3.0.5.RELEASE)
+org.springframework.web - Spring Web (3.0.5.RELEASE)
+org.springframework.osgi.extensions.annotations - spring-osgi-annotation (1.2.1)
+org.springframework.osgi.core - spring-osgi-core (1.2.1)
+org.springframework.osgi.extender - spring-osgi-extender (1.2.1)
+org.springframework.osgi.io - spring-osgi-io (1.2.1)
+stax2-api - Stax2 API (3.1.1)
+stax2-api - Stax2 API (3.0.2)
+woodstox-core-asl - Woodstox XML-processor (4.1.1)
+org.apache.ws.xmlschema.core - XmlSchema Core (2.0.0)
+{code}
+
+You can get some detail about an OSGi bundle:
+
+{code}
+karaf@root> obr:info slf4j.api,1.6.1
+---------
+slf4j-api
+---------
+id: slf4j.api/1.6.1
+description: The slf4j API
+symbolicname: slf4j.api
+presentationname: slf4j-api
+uri: file:/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo/slf4j-api-1.6.1.jar
+size: 25496
+version: 1.6.1
+Requires:
+   package:(&(package=org.slf4j.impl)(version>=1.6.0))
+   ee:(|(ee=J2SE-1.3))
+Capabilities:
+   bundle:{manifestversion=2, symbolicname=slf4j.api, presentationname=slf4j-api, version=1.6.1}
+   package:{package=org.slf4j, version=1.6.1}
+   package:{package=org.slf4j.spi, version=1.6.1}
+   package:{package=org.slf4j.helpers, version=1.6.1}
+{code}
+
+NB: in Karaf, the OBR entry format is symbolicname,version
+
+You have the detail of the OSGi bundle, especially the requirements and capabilities of the bundle.
+
+OBR is able to resolve the dependencies between bundles, depending of the requirements and capabilities of each bundle.
+It's able to manage version, etc.
+
+For instance, we have the following commons-pool bundle details:
+
+{code}
+karaf@root> obr:info org.apache.servicemix.bundles.commons-dbcp
+--------------------------------------------
+Apache ServiceMix :: Bundles :: commons-dbcp
+--------------------------------------------
+id: org.apache.servicemix.bundles.commons-dbcp/1.4.0.1
+description: This OSGi bundle wraps commons-dbcp 1.4 jar file.
+documentation: http://www.apache.org/
+symbolicname: org.apache.servicemix.bundles.commons-dbcp
+presentationname: Apache ServiceMix :: Bundles :: commons-dbcp
+license: http://www.apache.org/licenses/LICENSE-2.0.txt
+uri: file:/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo/org.apache.servicemix.bundles.commons-dbcp-1.4.0.1.jar
+size: 159721
+version: 1.4.0.1
+Requires:
+   package:(&(package=javax.naming))
+   package:(&(package=javax.naming.spi))
+   package:(&(package=javax.sql))
+   package:(&(package=javax.transaction))
+   package:(&(package=javax.transaction.xa))
+   package:(&(package=org.apache.commons.pool)(version>=1.3.0)(!(version>=2.0.0)))
+   package:(&(package=org.apache.commons.pool.impl)(version>=1.3.0)(!(version>=2.0.0)))
+   package:(&(package=org.xml.sax))
+   package:(&(package=org.xml.sax.helpers))
+Capabilities:
+   bundle:{manifestversion=2, symbolicname=org.apache.servicemix.bundles.commons-dbcp, presentationname=Apache ServiceMix :: Bundles :: commons-dbcp, version=1.4.0.1}
+   package:{package=org.apache.commons.dbcp.cpdsadapter, uses:=org.apache.commons.dbcp,javax.naming,javax.sql,org.apache.commons.pool.impl,org.apache.commons.pool,javax.naming.spi, version=1.4.0}
+   package:{package=org.apache.commons.dbcp, uses:=org.apache.commons.pool.impl,org.apache.commons.pool,javax.sql,javax.naming,javax.naming.spi,org.apache.commons.jocl,org.xml.sax, version=1.4.0}
+   package:{package=org.apache.commons.dbcp.managed, uses:=org.apache.commons.dbcp,javax.sql,org.apache.commons.pool.impl,javax.transaction,org.apache.commons.pool,javax.transaction.xa, version=1.4.0}
+   package:{package=org.apache.commons.dbcp.datasources, uses:=javax.sql,org.apache.commons.pool,javax.naming,org.apache.commons.dbcp,javax.naming.spi,org.apache.commons.pool.impl, version=1.4.0}
+   package:{package=org.apache.commons.jocl, uses:=org.xml.sax.helpers,org.xml.sax, version=1.4.0}
+{code}
+
+We can see that commons-dbcp requires org.apache.commons.pool package (between version 1.3.0 and 2.0.0).
+
+If we take a look on commons-pool bundle details:
+
+{code}
+karaf@root> obr:info org.apache.servicemix.bundles.commons-pool
+--------------------------------------------
+Apache ServiceMix :: Bundles :: commons-pool
+--------------------------------------------
+id: org.apache.servicemix.bundles.commons-pool/1.5.4.3
+description: This OSGi bundle wraps commons-pool 1.5.4 jar file.
+documentation: http://www.apache.org/
+symbolicname: org.apache.servicemix.bundles.commons-pool
+presentationname: Apache ServiceMix :: Bundles :: commons-pool
+license: http://www.apache.org/licenses/LICENSE-2.0.txt
+uri: file:/home/jbonofre/apache-karaf-2.2.2/cave/cave-repo/org.apache.servicemix.bundles.commons-pool-1.5.4.3.jar
+size: 97332
+version: 1.5.4.3
+Capabilities:
+   bundle:{manifestversion=2, symbolicname=org.apache.servicemix.bundles.commons-pool, presentationname=Apache ServiceMix :: Bundles :: commons-pool, version=1.5.4.3}
+   package:{package=org.apache.commons.pool.impl, uses:=org.apache.commons.pool, version=1.5.4}
+   package:{package=org.apache.commons.pool, version=1.5.4}
+{code}
+
+This bundle provides package org.apache.commons.pool capability.
+
+It means that if I deploy the commons-dbcp bundle, the OBR should also install the commons-pool bundle:
+
+{code}
+karaf@root> obr:deploy org.apache.servicemix.bundles.commons-dbcp
+Target resource(s):
+-------------------
+   Apache ServiceMix :: Bundles :: commons-dbcp (1.4.0.1)
+
+Required resource(s):
+---------------------
+   Apache ServiceMix :: Bundles :: commons-pool (1.5.4.3)
+
+Deploying...done.
+{code}
+
+Done: the OBR has resolved the commons-dbcp requirements using the commons-pool capabilities and so installed the
+commons-pool bundle.
+
+NB: in the obr:deploy command, if you don't mention the version, it will take the highly version available.
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/populate-repository.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/populate-repository.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/populate-repository.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/populate-repository.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,56 @@
+h1. Populate Cave Repository
+
+h2. Upload a single artifact
+
+You can upload a single artifact into a Cave Repository:
+
+{code}
+karaf@root> cave:upload-artifact cave-repo file:/home/jbonofre/.m2/repository/org/apache/servicemix/bundles/org.apache.servicemix.bundles.asm/3.3_2/org.apache.servicemix.bundles.asm-3.3_2.jar
+karaf@root> cave:upload-artifact cave-repo http://svn.apache.org/repos/asf/servicemix/m2-repo/org/apache/qpid/qpid-broker/0.8.0/qpid-broker-0.8.0.jar
+{code}
+
+You can also use Maven style URL:
+
+{code}
+karaf@root> cave:upload-artifact cave-repo mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.7.0_5
+{code}
+
+h3. Populate from an external repository
+
+You can also make a kind of "batch" population of your Cave Repository, using an external repository:
+
+{code}
+karaf@root> cave:populate-repository cave-repo file:/home/jbonofre/.m2/repository
+{code}
+
+Cave supports file: but also http: URL. It means that Cave is able to browse a remote repository and copy the artifacts.
+
+For instance, you can populate your Cave Repository using all Ant ServiceMix bundles present on the Central Maven
+repository:
+
+{code}
+karaf@root> cave:populate-repository cave-repo http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.ant/
+{code}
+
+You can also populate with the whole Central Maven Repository:
+
+{code}
+karaf@root> cave:populate-repository cave-repo http://repo1.maven.org/maven2
+{code}
+
+WARNING: the Central Maven Repository is really huge and populating from the whole Maven Central Repository will take
+very very long time. It's just for demonstration purpose.
+
+The cave:populate-repository command doesn't update the OBR metadata. You have to run:
+
+{code}
+karaf@root> cave:scan-repository cave-repo
+{code}
+
+to update the OBR metadata.
+
+If you want to update the OBR metadata at population time, you have to use the -u or --update option of the cave:populate-repository command:
+
+{code}
+karaf@root> cave:populate-repository -u cave-repo http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles/
+{code}
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/proxy-repository.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/proxy-repository.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/proxy-repository.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/proxy-repository.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,15 @@
+h1. Proxy A Repository
+
+As you can [populate a Cave Repository|/user-guide/populate-repository], you can also proxy an "external" repository.
+
+It means that the artifacts stay on the remote repository, the Cave Repository generates the OBR metadata for the remote
+artifacts:
+
+{code}
+karaf@root> cave:proxy-repository cave-repo http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.commons-lang/
+{code}
+
+NB: the Cave Repository will only handle the OBR metadata, it doesn't monitor the remote repository. It means that you
+have to call cave:proxy-repository command each time that the remote repository change (new artifact, etc).
+
+NB: a best practice is to create a Cave Repository dedicated for each proxied repository.
\ No newline at end of file

Added: karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/rest-service.conf
URL: http://svn.apache.org/viewvc/karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/rest-service.conf?rev=1161595&view=auto
==============================================================================
--- karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/rest-service.conf (added)
+++ karaf/sandbox/jbonofre/cave/trunk/manual/src/main/webapp/user-guide/rest-service.conf Thu Aug 25 15:04:29 2011
@@ -0,0 +1,7 @@
+h1. REST Service
+
+Cave Server also provide a REST service API to be able to manipulate the Cave Server.
+
+By default, the REST Service is bound to http://localhost:8181/services/cave.
+
+TODO: complete with a presentation of the different path, produce, consume.
\ No newline at end of file