geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r824826 - in /geronimo/javamail/trunk/geronimo-javamail_1.4: geronimo-javamail_1.4_mail/pom.xml pom.xml
Date Tue, 13 Oct 2009 16:07:47 GMT
Author: dwoods
Date: Tue Oct 13 16:07:47 2009
New Revision: 824826

URL: http://svn.apache.org/viewvc?rev=824826&view=rev
Log:
add osgi bundle metadata to mail uber jar

Modified:
    geronimo/javamail/trunk/geronimo-javamail_1.4/geronimo-javamail_1.4_mail/pom.xml
    geronimo/javamail/trunk/geronimo-javamail_1.4/pom.xml

Modified: geronimo/javamail/trunk/geronimo-javamail_1.4/geronimo-javamail_1.4_mail/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/javamail/trunk/geronimo-javamail_1.4/geronimo-javamail_1.4_mail/pom.xml?rev=824826&r1=824825&r2=824826&view=diff
==============================================================================
--- geronimo/javamail/trunk/geronimo-javamail_1.4/geronimo-javamail_1.4_mail/pom.xml (original)
+++ geronimo/javamail/trunk/geronimo-javamail_1.4/geronimo-javamail_1.4_mail/pom.xml Tue Oct
13 16:07:47 2009
@@ -31,6 +31,7 @@
     </parent>
 
     <artifactId>geronimo-javamail_1.4_mail</artifactId>
+    <packaging>bundle</packaging>
     <name>Geronimo JavaMail 1.4 :: Mail</name>
 
     <dependencies>
@@ -48,6 +49,16 @@
     <build>
         <plugins>
             <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Export-Package>javax.mail*;version=1.4</Export-Package>
+                    </instructions>
+                    <unpackBundle>true</unpackBundle>
+                </configuration>
+            </plugin>
+            <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-shade-plugin</artifactId>
                 <executions>
@@ -56,6 +67,32 @@
                         <goals>
                             <goal>shade</goal>
                         </goals>
+                        <configuration>
+<artifactSet>
+<includes>
+<include>
+org.apache.geronimo.specs:geronimo-javamail_1.4_spec
+</include>
+<include>
+org.apache.geronimo.javamail:geronimo-javamail_1.4_provider
+</include>
+<include>${project.groupId}:${project.artifactId}</include>
+</includes>
+</artifactSet>
+<filters>
+<filter>
+<artifact>
+org.apache.geronimo.specs:geronimo-javamail_1.4_spec
+</artifact>
+<excludes>
+<exclude>javax/**</exclude>
+<exclude>org/**</exclude>
+</excludes>
+</filter>
+</filters>
+                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+                            <createDependencyReducedPom>true</createDependencyReducedPom>
+                        </configuration>
                     </execution>
                 </executions>
             </plugin>

Modified: geronimo/javamail/trunk/geronimo-javamail_1.4/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/javamail/trunk/geronimo-javamail_1.4/pom.xml?rev=824826&r1=824825&r2=824826&view=diff
==============================================================================
--- geronimo/javamail/trunk/geronimo-javamail_1.4/pom.xml (original)
+++ geronimo/javamail/trunk/geronimo-javamail_1.4/pom.xml Tue Oct 13 16:07:47 2009
@@ -48,7 +48,7 @@
     </scm>
 
     <properties>
-        <siteId>javamail</siteId>
+        <siteId>javamail/${artifactId}</siteId>
         <projectName>Apache Geronimo Javamail Bundle</projectName>
     </properties>
 



Mime
View raw message