Author: norman
Date: Thu Jun 17 10:06:42 2010
New Revision: 955534

URL: http://svn.apache.org/viewvc?rev=955534&view=rev
Log:
import postbeanprocessors in dnsserver osgi bundle
osgify core-library (JAMES-835)

Modified:
    james/server/trunk/core-library/pom.xml
    james/server/trunk/dnsserver/pom.xml

Modified: james/server/trunk/core-library/pom.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/core-library/pom.xml?rev=955534&r1=955533&r2=955534&view=diff
==============================================================================
--- james/server/trunk/core-library/pom.xml (original)
+++ james/server/trunk/core-library/pom.xml Thu Jun 17 10:06:42 2010
@@ -117,6 +117,46 @@
           </execution>
         </executions>
       </plugin>
+      <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>
+            <Export-Package>org.apache.james.*</Export-Package>
+            <Embed-Dependency>*;scope=runtime</Embed-Dependency>
+          </instructions>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 </project>

Modified: james/server/trunk/dnsserver/pom.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/dnsserver/pom.xml?rev=955534&r1=955533&r2=955534&view=diff
==============================================================================
--- james/server/trunk/dnsserver/pom.xml (original)
+++ james/server/trunk/dnsserver/pom.xml Thu Jun 17 10:06:42 2010
@@ -26,23 +26,10 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.james</groupId>
   <artifactId>james-server-dnsserver</artifactId>
-  <name>Apache JAMES Server DNSSerice Implementation</name>
+  <name>Apache JAMES Server DNSService Implementation</name>
   <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>
@@ -56,6 +43,7 @@
         <executions>
           <execution>
             <goals>
+              <goal>jar</goal>
               <goal>test-jar</goal>
             </goals>
           </execution>
@@ -76,6 +64,8 @@
         <extensions>true</extensions>
         <configuration>
           <instructions>
+            <!-- We need to import the lifecycle methods of james and spring 
stuff just to me sure it works -->
+            
<Import-Package>org.apache.james.container.spring.lifecycle.*,org.springframework.*,*</Import-Package>
             <Export-Package>org.apache.james.api.dnsservice.*</Export-Package>
             <Embed-Dependency>*;scope=runtime</Embed-Dependency>
           </instructions>



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

Reply via email to