You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2009/10/29 11:35:09 UTC

svn commit: r830884 - /openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi/pom.xml

Author: jlmonteiro
Date: Thu Oct 29 10:35:08 2009
New Revision: 830884

URL: http://svn.apache.org/viewvc?rev=830884&view=rev
Log:
Add features to ease bundle installation. It needs to be enhanced. Moreover, it would be nice to use maven properties with filtering.

Modified:
    openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi/pom.xml

Modified: openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi/pom.xml?rev=830884&r1=830883&r2=830884&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi/pom.xml (original)
+++ openejb/trunk/sandbox/openejb-osgi/openejb-core-osgi/pom.xml Thu Oct 29 10:35:08 2009
@@ -1,66 +1,134 @@
 <?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.
+        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.
+    -->
 
--->
-
-<!-- $Rev$ $Date$ -->
+    <!-- $Rev$ $Date$ -->
 
 <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/maven-v4_0_0.xsd">
-  <parent>
-    <artifactId>container</artifactId>
-    <groupId>org.apache.openejb</groupId>
-    <version>3.1.2-SNAPSHOT</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>openejb-core-osgi</artifactId>
-  <packaging>bundle</packaging>
-  <name>OpenEJB :: Container :: Core :: OSGi</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.openejb</groupId>
-      <artifactId>openejb-core</artifactId>
-	  <version>${version}</version>
-    </dependency>
-	<dependency>
-	    <groupId>org.apache.felix</groupId>
-	    <artifactId>org.osgi.core</artifactId>
-	    <version>1.2.0</version>
-	</dependency> 
-    <dependency>
-      <groupId>org.apache.geronimo.components</groupId>
-      <artifactId>geronimo-transaction</artifactId>
-    </dependency>
-  </dependencies>
-  <build>
-	<plugins>
-      <plugin>
-        <groupId>org.apache.felix</groupId>
-  <artifactId>maven-bundle-plugin</artifactId>
-  <configuration>
-    <instructions>
-      <Bundle-Activator>org.apache.openejb.core.osgi.impl.Activator</Bundle-Activator>
-      <Require-Bundle>org.apache.openejb.core, org.apache.openejb.loader, org.apache.openejb.jee</Require-Bundle>
-      <Export-Package>org.apache.openejb.core.osgi.*</Export-Package>
-      <Import-Package>org.apache.openejb.assembler.classic,org.apache.openejb.config,org.apache.openejb.spi,org.apache.openejb.resource.activemq,org.apache.activemq.ra,javax.jms,org.apache.commons.logging,org.apache.openejb;version="3.1",org.apache.openejb.core.osgi.impl,org.apache.openejb.loader;version="3.1",org.apache.openejb.util;version="3.1",org.osgi.framework;version="1.4",javax.transaction;version="[1.1,1.2)",javax.transaction.xa;version="[1.1,1.2)",javax.naming,org.apache.openejb.client</Import-Package>
-    </instructions>
-  </configuration>
-</plugin>
-	</plugins>
-</build>
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <parent>
+        <artifactId>container</artifactId>
+        <groupId>org.apache.openejb</groupId>
+        <version>3.1.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>openejb-core-osgi</artifactId>
+    <packaging>bundle</packaging>
+    <name>OpenEJB :: Container :: Core :: OSGi</name>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.openejb</groupId>
+            <artifactId>openejb-core</artifactId>
+            <version>${version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>1.2.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.components</groupId>
+            <artifactId>geronimo-transaction</artifactId>
+        </dependency>
+    </dependencies>
+    <build>
+        <resources>
+            <resource>
+                <directory>${pom.basedir}/src/main/resources</directory>
+            </resource>
+            <resource>
+                <directory>${pom.basedir}/src/main/filtered-resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-Activator>org.apache.openejb.core.osgi.impl.Activator</Bundle-Activator>
+                        <Require-Bundle>
+                            org.apache.openejb.core,
+                            org.apache.openejb.loader,
+                            org.apache.openejb.jee
+                        </Require-Bundle>
+                        <Export-Package>org.apache.openejb.core.osgi.*</Export-Package>
+                        <Import-Package>
+                            javax.transaction;version="[1.1,1.2)",
+                            javax.transaction.xa;version="[1.1,1.2)",
+                            javax.naming,
+                            javax.jms,
+                            org.apache.commons.logging,
+                            org.apache.openejb.assembler.classic,
+                            org.apache.openejb.config,
+                            org.apache.openejb.spi,
+                            org.apache.openejb.resource.activemq,
+                            org.apache.openejb.client,
+                            org.apache.activemq.ra,
+                            org.apache.openejb;version="3.1",
+                            org.apache.openejb.core.osgi.impl,
+                            org.apache.openejb.loader;version="3.1",
+                            org.apache.openejb.util;version="3.1",
+                            org.osgi.framework;version="1.4"
+                        </Import-Package>
+                        <Include-Resource>${pom.basedir}/src/main/resources</Include-Resource>
+                    </instructions>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>target/classes/features.xml</file>
+                                    <type>xml </type>
+                                    <classifier>features</classifier>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <!--
+                <plugin> <groupId>org.apache.felix.karaf.tooling</groupId>
+                <artifactId>features-maven-plugin</artifactId>
+                <version>1.0.0</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/classes/features.xml</descriptor>
+                </descriptors> <features> <feature>javaee-api</feature>
+                <feature>openejb-core</feature> </features>
+                <repository>target/features-repo</repository> </configuration>
+                </execution> </executions> </plugin>
+            -->
+        </plugins>
+    </build>
+
 </project>