You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by pl...@apache.org on 2016/09/06 17:18:08 UTC

[12/50] [abbrv] incubator-tamaya-sandbox git commit: TAMAYA-123: Adding OSGI Support.

TAMAYA-123: Adding OSGI Support.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/commit/390c22ab
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/tree/390c22ab
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/diff/390c22ab

Branch: refs/heads/master
Commit: 390c22ab7d31799e9c9f83731a5314a838238a5e
Parents: 9f37cc1
Author: anatole <an...@apache.org>
Authored: Fri Oct 16 19:15:21 2015 +0200
Committer: anatole <an...@apache.org>
Committed: Fri Oct 16 19:15:21 2015 +0200

----------------------------------------------------------------------
 collections/pom.xml         | 25 ++++++++++++++++++++++++-
 integration/commons/pom.xml | 27 ++++++++++++++++++++++++++-
 integration/store/pom.xml   | 28 +++++++++++++++++++++++++++-
 jodatime/pom.xml            | 25 +++++++++++++++++++++++++
 metamodels/simple/pom.xml   | 28 ++++++++++++++++++++++++++--
 metamodels/staged/pom.xml   | 28 +++++++++++++++++++++++++++-
 sysprops/pom.xml            | 23 ++++++++++++++++++++++-
 7 files changed, 177 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/390c22ab/collections/pom.xml
----------------------------------------------------------------------
diff --git a/collections/pom.xml b/collections/pom.xml
index 0ec3dda..d5ed30b 100644
--- a/collections/pom.xml
+++ b/collections/pom.xml
@@ -29,7 +29,7 @@ under the License.
 
     <artifactId>tamaya-collections</artifactId>
     <name>Apache Tamaya Modules - Collections Support</name>
-    <packaging>jar</packaging>
+    <packaging>bundle</packaging>
 
     <dependencies>
         <dependency>
@@ -49,4 +49,27 @@ under the License.
         </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.apache.tamaya,
+                            org.apache.tamaya.spi,
+                            javax.annotation,
+                            *
+                        </Import-Package>
+                        <Private-Package>
+                            org.apache.tamaya.collections.internal
+                        </Private-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/390c22ab/integration/commons/pom.xml
----------------------------------------------------------------------
diff --git a/integration/commons/pom.xml b/integration/commons/pom.xml
index d3d1b85..8c04a41 100644
--- a/integration/commons/pom.xml
+++ b/integration/commons/pom.xml
@@ -28,7 +28,7 @@ under the License.
     </parent>
     <artifactId>commons</artifactId>
     <name>Apache Tamaya Commons Configuration Integration</name>
-    <packaging>jar</packaging>
+    <packaging>bundle</packaging>
 
     <dependencies>
         <dependency>
@@ -47,4 +47,29 @@ under the License.
             <version>1.10</version>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.apache.tamaya,
+                            org.apache.tamaya.spi,
+                            org.apache.tamaya.format,
+                            org.apache.commons,
+                            javax.annotation,
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                            org.apache.tamaya.integration.commons
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/390c22ab/integration/store/pom.xml
----------------------------------------------------------------------
diff --git a/integration/store/pom.xml b/integration/store/pom.xml
index d755551..0e8a546 100644
--- a/integration/store/pom.xml
+++ b/integration/store/pom.xml
@@ -28,7 +28,7 @@ under the License.
     <artifactId>tamaya-store</artifactId>
     <name>Apache Tamaya Storage/Cache/Datagrid Integration</name>
     <description>Integration with a Datagrid backend for distributed configuration.</description>
-    <packaging>jar</packaging>
+    <packaging>bundle</packaging>
 
     <dependencies>
         <dependency>
@@ -51,4 +51,30 @@ under the License.
             <artifactId>junit</artifactId>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.apache.tamaya,
+                            org.apache.tamaya.spi,
+                            org.apache.tamaya.events,
+                            org.apache.tamaya.spisupport
+                            javax.annotation,
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                            org.apache.tamaya.integration.store,
+                            org.apache.tamaya.integration.store.spi,
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/390c22ab/jodatime/pom.xml
----------------------------------------------------------------------
diff --git a/jodatime/pom.xml b/jodatime/pom.xml
index 268939f..98b13a6 100644
--- a/jodatime/pom.xml
+++ b/jodatime/pom.xml
@@ -31,6 +31,7 @@ under the License.
 
     <artifactId>tamaya-jodatime</artifactId>
     <name>Apache Tamaya Joda-Time Support</name>
+    <packaging>bundle</packaging>
 
     <inceptionYear>2015</inceptionYear>
 
@@ -77,6 +78,30 @@ under the License.
         </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.apache.tamaya,
+                            org.apache.tamaya.spi,
+                            org.jodatime,
+                            javax.annotation,
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                            org.apache.tamaya.jodatime
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 
     
 </project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/390c22ab/metamodels/simple/pom.xml
----------------------------------------------------------------------
diff --git a/metamodels/simple/pom.xml b/metamodels/simple/pom.xml
index a806459..1d1b26b 100644
--- a/metamodels/simple/pom.xml
+++ b/metamodels/simple/pom.xml
@@ -29,7 +29,7 @@ under the License.
     <artifactId>tamaya-metamodels-simple</artifactId>
     <name>Apache Tamaya Modules Metamodels - Simple</name>
     <description>Simple Tamaya Metamodel, e.g. feasible for SE commandline tools and simple use cases.</description>
-    <packaging>jar</packaging>
+    <packaging>bundle</packaging>
 
     <dependencies>
         <dependency>
@@ -49,7 +49,7 @@ under the License.
         </dependency>
         <dependency>
             <groupId>org.apache.tamaya.ext</groupId>
-            <artifactId>tamaya-items</artifactId>
+            <artifactId>tamaya-resources</artifactId>
             <version>${project.version}</version>
         </dependency>
         <dependency>
@@ -59,4 +59,28 @@ under the License.
         </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.apache.tamaya,
+                            org.apache.tamaya.spi,
+                            org.apache.tamaya.format,
+                            javax.annotation,
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                            org.apache.tamaya.metamodel.simple
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/390c22ab/metamodels/staged/pom.xml
----------------------------------------------------------------------
diff --git a/metamodels/staged/pom.xml b/metamodels/staged/pom.xml
index 325e4ec..324ea5e 100644
--- a/metamodels/staged/pom.xml
+++ b/metamodels/staged/pom.xml
@@ -29,7 +29,7 @@ under the License.
 
     <artifactId>tamaya-metamodel-staged</artifactId>
     <name>Apache Tamaya Modules - Staged Configuration</name>
-    <packaging>jar</packaging>
+    <packaging>bundle</packaging>
 
     <dependencies>
         <dependency>
@@ -65,4 +65,30 @@ under the License.
         </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.apache.tamaya,
+                            org.apache.tamaya.spi,
+                            org.apache.tamaya.resources,
+                            org.apache.tamaya.spisupport,
+                            org.apache.tamaya.functions,
+                            javax.annotation,
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                            org.apache.tamaya.metamodel.simple
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/390c22ab/sysprops/pom.xml
----------------------------------------------------------------------
diff --git a/sysprops/pom.xml b/sysprops/pom.xml
index fba1d69..2fe0dd2 100644
--- a/sysprops/pom.xml
+++ b/sysprops/pom.xml
@@ -28,7 +28,7 @@ under the License.
     </parent>
     <artifactId>tamaya-sysprops</artifactId>
     <name>Apache Tamaya - Configured Java SE System Properties</name>
-    <packaging>jar</packaging>
+    <packaging>bundle</packaging>
 
     <build>
         <plugins>
@@ -44,6 +44,27 @@ under the License.
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            org.apache.tamaya,
+                            org.apache.tamaya.spi,
+                            org.apache.tamaya.resources,
+                            org.apache.tamaya.spisupport,
+                            org.apache.tamaya.functions,
+                            javax.annotation,
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                            org.apache.tamaya.integration.se
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
         </plugins>
     </build>