Author: iocanel
Date: Wed Oct 19 21:35:25 2011
New Revision: 1186507
URL: http://svn.apache.org/viewvc?rev=1186507&view=rev
Log:
[DIRECTMEMORY-23] Create a feature descriptor for Karaf.
Added:
incubator/directmemory/trunk/platforms/
incubator/directmemory/trunk/platforms/karaf/
incubator/directmemory/trunk/platforms/karaf/pom.xml
incubator/directmemory/trunk/platforms/karaf/src/
incubator/directmemory/trunk/platforms/karaf/src/main/
incubator/directmemory/trunk/platforms/karaf/src/main/resources/
incubator/directmemory/trunk/platforms/karaf/src/main/resources/features.xml
incubator/directmemory/trunk/platforms/pom.xml
Modified:
incubator/directmemory/trunk/pom.xml
Added: incubator/directmemory/trunk/platforms/karaf/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/directmemory/trunk/platforms/karaf/pom.xml?rev=1186507&view=auto
==============================================================================
--- incubator/directmemory/trunk/platforms/karaf/pom.xml (added)
+++ incubator/directmemory/trunk/platforms/karaf/pom.xml Wed Oct 19 21:35:25
2011
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ 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.
+ -->
+
+<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">
+ <parent>
+ <artifactId>platforms</artifactId>
+ <groupId>org.apache.directmemory</groupId>
+ <version>0.5.5-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.directmemory.karaf</groupId>
+ <artifactId>apache-directmemory</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache DirectMemory :: Platforms :: Karaf</name>
+ <description>${project.name}</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>target/features.xml</file>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+
<outputDirectory>${project.basedir}/target</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.karaf.tooling</groupId>
+ <artifactId>features-maven-plugin</artifactId>
+ <version>${karaf.version}</version>
+ <executions>
+ <execution>
+ <id>add-features-to-repo</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>add-features-to-repo</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+
<descriptor>file:${basedir}/target/features.xml</descriptor>
+ </descriptors>
+ <features>
+ <feature>directmemory</feature>
+ </features>
+ <repository>target/features-repo</repository>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added:
incubator/directmemory/trunk/platforms/karaf/src/main/resources/features.xml
URL:
http://svn.apache.org/viewvc/incubator/directmemory/trunk/platforms/karaf/src/main/resources/features.xml?rev=1186507&view=auto
==============================================================================
---
incubator/directmemory/trunk/platforms/karaf/src/main/resources/features.xml
(added)
+++
incubator/directmemory/trunk/platforms/karaf/src/main/resources/features.xml
Wed Oct 19 21:35:25 2011
@@ -0,0 +1,32 @@
+<!--
+ ~ 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.
+ -->
+
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
+
+ <feature name='directmemory' description='Apache DirectMememory'
version='${project.version}' resolver='(obr)'>
+ <bundle
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.guava/${guava.bundle.version}</bundle>
+ <bundle
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/${ant.bundle.version}</bundle>
+ <bundle
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.oro/${oro.bundle.version}</bundle>
+ <bundle
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.josql/${josql.bundle.version}</bundle>
+ <bundle
dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aspectj/${aspectj.bundle.version}</bundle>
+ <bundle
dependency='true'>mvn:com.dyuproject.protostuff/protostuff-uberjar/${protostuff.version}</bundle>
+
<bundle>mvn:org.apache.directmemory/directmemory-cache/${project.version}</bundle>
+ </feature>
+</features>
+
Added: incubator/directmemory/trunk/platforms/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/directmemory/trunk/platforms/pom.xml?rev=1186507&view=auto
==============================================================================
--- incubator/directmemory/trunk/platforms/pom.xml (added)
+++ incubator/directmemory/trunk/platforms/pom.xml Wed Oct 19 21:35:25 2011
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ 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.
+ -->
+
+<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">
+ <parent>
+ <artifactId>directmemory-parent</artifactId>
+ <groupId>org.apache.directmemory</groupId>
+ <version>0.5.5-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.directmemory</groupId>
+ <artifactId>platforms</artifactId>
+ <packaging>pom</packaging>
+ <name>Apache DirectMemory :: Platforms</name>
+ <description>${project.name}</description>
+
+ <modules>
+ <module>karaf</module>
+ </modules>
+
+
+</project>
\ No newline at end of file
Modified: incubator/directmemory/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/directmemory/trunk/pom.xml?rev=1186507&r1=1186506&r2=1186507&view=diff
==============================================================================
--- incubator/directmemory/trunk/pom.xml (original)
+++ incubator/directmemory/trunk/pom.xml Wed Oct 19 21:35:25 2011
@@ -193,6 +193,7 @@ under the License.
<modules>
<module>directmemory-cache</module>
+ <module>platforms</module>
<module>itests</module>
</modules>
@@ -228,24 +229,29 @@ under the License.
<maven.compile.target>1.6</maven.compile.target>
<!-- Dependency Versions -->
+ <ant.bundle.version>1.7.0_1</ant.bundle.version>
<aspectj.bundle.version>1.6.8_2</aspectj.bundle.version>
<aspectj.version>1.6.11</aspectj.version>
<doclava.version>1.0.3</doclava.version>
+ <guava.bundle.version>09_1</guava.bundle.version>
<guava.version>r09</guava.version>
<h2.version>1.3.158</h2.version>
+ <karaf.version>2.2.4</karaf.version>
<josql.bundle.version>1.5_5</josql.bundle.version>
<josql.version>1.5</josql.version>
<junit.version>4.10</junit.version>
<junit-benchamrks.version>0.3.0-SNAPSHOT</junit-benchamrks.version>
<logback.version>0.9.26</logback.version>
+ <oro.bundle.version>2.0.8_5</oro.bundle.version>
<pax-exam.version>1.2.4</pax-exam.version>
<pax-tiny-bundle.version>1.3.1</pax-tiny-bundle.version>
- <protostuff.version>1.0.1</protostuff.version>
+ <protostuff.version>1.0.2</protostuff.version>
<slf4j.version>1.6.1</slf4j.version>
<wagon.version>2.0</wagon.version>
<!-- Plugin Versions -->
<buildnumber-plugin.version>1.0</buildnumber-plugin.version>
+ <build-helper-plugin.version>1.7</build-helper-plugin.version>
<bundle-plugin.version>2.1.0</bundle-plugin.version>
<clean-plugin.version>2.4.1</clean-plugin.version>
<compiler-plugin.version>2.3.2</compiler-plugin.version>
@@ -256,6 +262,7 @@ under the License.
<project-info-reports-plugin.version>2.4</project-info-reports-plugin.version>
<rat-plugin.version>0.7</rat-plugin.version>
<release-plugin.version>2.1</release-plugin.version>
+ <resources-plugin.version>2.5</resources-plugin.version>
<report-plugin.version>0.1</report-plugin.version>
<site-plugin.version>3.0</site-plugin.version>
<source-plugin.version>2.1.2</source-plugin.version>
@@ -312,6 +319,16 @@ under the License.
<arguments>-Prelease</arguments>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>${resources-plugin.version}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>${build-helper-plugin.version}</version>
+ </plugin>
</plugins>
</pluginManagement>