You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jg...@apache.org on 2011/12/11 23:19:27 UTC
svn commit: r1213093 - in /karaf/branches/karaf-2.2.x:
assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/
assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/
demos/ demos/deployer/ demos/deployer/kar/ demos/deployer...
Author: jgoodyear
Date: Sun Dec 11 22:19:27 2011
New Revision: 1213093
URL: http://svn.apache.org/viewvc?rev=1213093&view=rev
Log:
[KARAF-1085] Add Kar deployer demo using features-maven-plugin
Adding Karaf Archive demo.
Added:
karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/
karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/
karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt (with props)
karaf/branches/karaf-2.2.x/demos/deployer/
karaf/branches/karaf-2.2.x/demos/deployer/kar/
karaf/branches/karaf-2.2.x/demos/deployer/kar/NOTICE
karaf/branches/karaf-2.2.x/demos/deployer/kar/pom.xml (with props)
karaf/branches/karaf-2.2.x/demos/deployer/kar/src/
karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/
karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/resources/
karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/resources/features.xml (with props)
karaf/branches/karaf-2.2.x/demos/deployer/pom.xml (with props)
Modified:
karaf/branches/karaf-2.2.x/demos/pom.xml
Added: karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt?rev=1213093&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt (added)
+++ karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt Sun Dec 11 22:19:27 2011
@@ -0,0 +1,72 @@
+/*
+ * 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.
+ */
+
+Karaf Archive (kar) EXAMPLE
+==============================
+
+Purpose
+-------
+Demonstrate how to create Karaf Archives.
+
+
+Prerequisites for Running this Example
+--------------------------------------
+You must have the following installed on your machine:
+
+ - JDK 1.6 or higher.
+
+ - Apache Maven 2.2.1 or higher.
+
+
+Building and Deploying
+----------------------
+This example will produce a kar, containing a bundle.
+
+To build the demo kar invoke the following command:
+
+ mvn install
+
+Karaf provides a KAR deployer:
+
+ karaf@root> la | grep -i archive
+ [ 15] [Active ] [Created ] [ 30] Apache Karaf :: Deployer :: Karaf Archive (.kar) (${pom.version})
+
+It's a core deployer (you don't need to install additional features).
+
+To deploy a kar, simply drop the kar into the deploy directory.
+The KAR Deployer will deploy all the kar content starting from
+the features descriptor.
+
+The KAR Deployer creates a repository dedicated to your kar
+(in the $/local-repo) and register the features descriptor.
+You can now see your feature available for installation:
+
+ karaf@root> feature:list | grep -i my-kar
+ [installed] [1.0 ] my-kar repo-0
+
+Now you can use any commands available on features:
+
+ karaf@root> feature:info my-kar
+ Feature my-kar 1.0
+ Feature has no configuration
+ Feature has no configuration files
+ Feature has no dependencies.
+ Feature contains followed bundles:
+ mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections/3.2.1_1
+
+For more information on Karaf Archives please visit:
+http://karaf.apache.org/manual/latest-2.2.x/users-guide/kar.html
Propchange: karaf/branches/karaf-2.2.x/assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/branches/karaf-2.2.x/demos/deployer/kar/NOTICE
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/demos/deployer/kar/NOTICE?rev=1213093&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/demos/deployer/kar/NOTICE (added)
+++ karaf/branches/karaf-2.2.x/demos/deployer/kar/NOTICE Sun Dec 11 22:19:27 2011
@@ -0,0 +1,48 @@
+Apache Karaf
+Copyright 2010 The Apache Software Foundation
+
+
+I. Included Software
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+Licensed under the Apache License 2.0.
+
+This product includes software written by
+Antony Lesuisse.
+Licensed under Public Domain.
+
+
+II. Used Software
+
+This product uses software developed at
+The OSGi Alliance (http://www.osgi.org/).
+Copyright (c) OSGi Alliance (2000, 2010).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+OPS4J (http://www.ops4j.org/).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+FUSE Source (http://www.fusesource.org/).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+Tanuki Software (http://www.tanukisoftware.com/).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+JLine (http://jline.sourceforge.net).
+Licensed under the BSD License.
+
+This product uses software developed at
+SLF4J (http://www.slf4j.org/).
+Licensed under the MIT License.
+
+This product includes software from http://www.json.org.
+Copyright (c) 2002 JSON.org
+
+
+III. License Summary
+- Apache License 2.0
Added: karaf/branches/karaf-2.2.x/demos/deployer/kar/pom.xml
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/demos/deployer/kar/pom.xml?rev=1213093&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/demos/deployer/kar/pom.xml (added)
+++ karaf/branches/karaf-2.2.x/demos/deployer/kar/pom.xml Sun Dec 11 22:19:27 2011
@@ -0,0 +1,77 @@
+<?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.demos</groupId>
+ <artifactId>org.apache.karaf.demos.deployer</artifactId>
+ <version>2.2.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent> -->
+
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>10</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.apache.karaf.demos.deployer.kar</groupId>
+ <artifactId>my-kar</artifactId>
+ <version>1.0</version>
+ <packaging>pom</packaging>
+ <name>Apache Karaf :: Demos :: Deployer :: Kar</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicemix.bundles</groupId>
+ <artifactId>org.apache.servicemix.bundles.commons-collections</artifactId>
+ <version>3.2.1_1</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.karaf.tooling</groupId>
+ <artifactId>features-maven-plugin</artifactId>
+ <version>2.2.5-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>create-kar</id>
+ <goals>
+ <goal>create-kar</goal>
+ </goals>
+ <configuration>
+ <featuresFile>src/main/resources/features.xml</featuresFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Propchange: karaf/branches/karaf-2.2.x/demos/deployer/kar/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/resources/features.xml
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/resources/features.xml?rev=1213093&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/resources/features.xml (added)
+++ karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/resources/features.xml Sun Dec 11 22:19:27 2011
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<features>
+
+ <feature name="my-kar" version="1.0">
+ <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections/3.2.1_1</bundle>
+ </feature>
+
+</features>
Propchange: karaf/branches/karaf-2.2.x/demos/deployer/kar/src/main/resources/features.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/branches/karaf-2.2.x/demos/deployer/pom.xml
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/demos/deployer/pom.xml?rev=1213093&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/demos/deployer/pom.xml (added)
+++ karaf/branches/karaf-2.2.x/demos/deployer/pom.xml Sun Dec 11 22:19:27 2011
@@ -0,0 +1,39 @@
+<?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.demos</groupId>
+ <artifactId>demos</artifactId>
+ <version>2.2.5-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>org.apache.karaf.demos.deployer</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache Karaf :: Demos :: Deployer</name>
+
+ <modules>
+ <module>kar</module>
+ </modules>
+
+</project>
Propchange: karaf/branches/karaf-2.2.x/demos/deployer/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: karaf/branches/karaf-2.2.x/demos/pom.xml
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/demos/pom.xml?rev=1213093&r1=1213092&r2=1213093&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/demos/pom.xml (original)
+++ karaf/branches/karaf-2.2.x/demos/pom.xml Sun Dec 11 22:19:27 2011
@@ -38,6 +38,7 @@
<module>branding</module>
<module>dump</module>
<module>command</module>
+ <module>deployer</module>
</modules>
</project>