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/07 18:37:19 UTC
svn commit: r1211556 - in /karaf/trunk/demos: ./ deployer/ deployer/src/
deployer/src/main/ deployer/src/main/filtered-resources/
deployer/src/main/filtered-resources/resources/
deployer/src/main/filtered-resources/resources/demos/ deployer/src/main/fi...
Author: jgoodyear
Date: Wed Dec 7 17:37:19 2011
New Revision: 1211556
URL: http://svn.apache.org/viewvc?rev=1211556&view=rev
Log:
[KARAF-984] Add Kar deployer demo using karaf-maven-plugin
initial check in of kar deployer demo.
Added:
karaf/trunk/demos/deployer/
karaf/trunk/demos/deployer/pom.xml (with props)
karaf/trunk/demos/deployer/src/
karaf/trunk/demos/deployer/src/main/
karaf/trunk/demos/deployer/src/main/filtered-resources/
karaf/trunk/demos/deployer/src/main/filtered-resources/resources/
karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/
karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/
karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/kar/
karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/kar/README.txt (with props)
karaf/trunk/demos/deployer/src/main/resources/
karaf/trunk/demos/deployer/src/main/resources/resources/
karaf/trunk/demos/deployer/src/main/resources/resources/demos/
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/NOTICE
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/pom.xml (with props)
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/resources/
karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/resources/features.xml (with props)
Modified:
karaf/trunk/demos/pom.xml
Added: karaf/trunk/demos/deployer/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/deployer/pom.xml?rev=1211556&view=auto
==============================================================================
--- karaf/trunk/demos/deployer/pom.xml (added)
+++ karaf/trunk/demos/deployer/pom.xml Wed Dec 7 17:37:19 2011
@@ -0,0 +1,105 @@
+<?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>3.0.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.apache.karaf.demos.deployer</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache Karaf :: Demos :: Deployer</name>
+
+ <modules>
+ <module>src/main/resources/resources/demos/deployer/kar</module>
+ <!--<module>branding-package</module>-->
+ </modules>
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>false</filtering>
+ <excludes>
+ <exclude>**/target/**</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src/main/filtered-resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <!--<configuration>-->
+ <!--<resources>-->
+ <!--<resource>src/main/resources</resource>-->
+ <!--</resources>-->
+ <!--</configuration>-->
+ <executions>
+ <execution>
+ <id>process-resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.karaf.tooling</groupId>
+ <artifactId>karaf-maven-plugin</artifactId>
+ <version>${project.version}</version>
+ <configuration>
+ <startLevel>60</startLevel>
+ <!--<checkDependencyChange>true</checkDependencyChange>-->
+ <!--<overwriteChangedDependencies>true</overwriteChangedDependencies>-->
+ <!--<warnOnDependencyChange>true</warnOnDependencyChange>-->
+ </configuration>
+ <executions>
+ <execution>
+ <id>compile</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>features-generate-descriptor</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>package</id>
+ <goals>
+ <goal>features-create-kar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: karaf/trunk/demos/deployer/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/kar/README.txt
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/kar/README.txt?rev=1211556&view=auto
==============================================================================
--- karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/kar/README.txt (added)
+++ karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/kar/README.txt Wed Dec 7 17:37:19 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 3.0.3 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
+
+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/${pom.version}/users-guide/kar.html
Propchange: karaf/trunk/demos/deployer/src/main/filtered-resources/resources/demos/deployer/kar/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/NOTICE
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/NOTICE?rev=1211556&view=auto
==============================================================================
--- karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/NOTICE (added)
+++ karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/NOTICE Wed Dec 7 17:37:19 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/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/pom.xml?rev=1211556&view=auto
==============================================================================
--- karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/pom.xml (added)
+++ karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/pom.xml Wed Dec 7 17:37:19 2011
@@ -0,0 +1,70 @@
+<?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</groupId>
+ <artifactId>apache</artifactId>
+ <version>10</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.apache.karaf.demos</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>karaf-maven-plugin</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>package</id>
+ <goals>
+ <goal>features-create-kar</goal>
+ </goals>
+ <configuration>
+ <featuresFile>src/main/resources/features.xml</featuresFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Propchange: karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/resources/features.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/resources/features.xml?rev=1211556&view=auto
==============================================================================
--- karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/resources/features.xml (added)
+++ karaf/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/resources/features.xml Wed Dec 7 17:37:19 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/trunk/demos/deployer/src/main/resources/resources/demos/deployer/kar/src/main/resources/features.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: karaf/trunk/demos/pom.xml
URL: http://svn.apache.org/viewvc/karaf/trunk/demos/pom.xml?rev=1211556&r1=1211555&r2=1211556&view=diff
==============================================================================
--- karaf/trunk/demos/pom.xml (original)
+++ karaf/trunk/demos/pom.xml Wed Dec 7 17:37:19 2011
@@ -37,6 +37,7 @@
<module>web</module>
<module>branding</module>
<module>dump</module>
+ <module>deployer</module>
</modules>
-</project>
\ No newline at end of file
+</project>