Author: norman
Date: Sat Jun 19 17:54:00 2010
New Revision: 956259

URL: http://svn.apache.org/viewvc?rev=956259&view=rev
Log:
osgify mailets (JAMES-835)

Modified:
    james/server/trunk/javamail-util/pom.xml
    james/server/trunk/mailets/pom.xml

Modified: james/server/trunk/javamail-util/pom.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/javamail-util/pom.xml?rev=956259&r1=956258&r2=956259&view=diff
==============================================================================
--- james/server/trunk/javamail-util/pom.xml (original)
+++ james/server/trunk/javamail-util/pom.xml Sat Jun 19 17:54:00 2010
@@ -30,19 +30,6 @@
   <build>
     <plugins>
       <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <configuration>
-          <archive>
-            
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
 
-            <manifest>
-              
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
-              
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
-            </manifest>
-          </archive>
-        </configuration>
-      </plugin>
-      <plugin>
         <artifactId>maven-jar-plugin</artifactId>
          <configuration>       
            <archive>
@@ -52,10 +39,11 @@
               
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
             </manifest>
           </archive>
-        </configuration>       
+        </configuration>
         <executions>
           <execution>
             <goals>
+              <goal>jar</goal>
               <goal>test-jar</goal>
             </goals>
           </execution>

Modified: james/server/trunk/mailets/pom.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/mailets/pom.xml?rev=956259&r1=956258&r2=956259&view=diff
==============================================================================
--- james/server/trunk/mailets/pom.xml (original)
+++ james/server/trunk/mailets/pom.xml Sat Jun 19 17:54:00 2010
@@ -28,6 +28,53 @@
   <artifactId>james-server-mailets</artifactId>
   <name>Apache JAMES Server Mailets</name>
   <packaging>jar</packaging>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-jar-plugin</artifactId>
+         <configuration>       
+           <archive>
+            
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
 
+            <manifest>
+              
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+              
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+            </manifest>
+          </archive>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>jar</goal>
+              <goal>test-jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>bundle-manifest</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>manifest</goal>
+            </goals>
+          </execution>
+        </executions>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <!-- exclude jspf for now, cause dnsjnio is not osgi ready -->
+            <Import-Package>!org.apache.james.jspf.*, *</Import-Package>
+            
<Export-Package>org.apache.james.transport.mailets.*,org.apache.james.transport.matchers</Export-Package>
+            <Embed-Dependency>*;scope=runtime</Embed-Dependency>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
   <dependencies>
     <dependency>
       <groupId>org.apache.james</groupId>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to