You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/12/12 12:07:10 UTC

svn commit: r1044792 - in /james/server/trunk: core-api/pom.xml pom.xml

Author: norman
Date: Sun Dec 12 11:07:09 2010
New Revision: 1044792

URL: http://svn.apache.org/viewvc?rev=1044792&view=rev
Log:
Next crack on OSGI. See JAMES-910

Modified:
    james/server/trunk/core-api/pom.xml
    james/server/trunk/pom.xml

Modified: james/server/trunk/core-api/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/core-api/pom.xml?rev=1044792&r1=1044791&r2=1044792&view=diff
==============================================================================
--- james/server/trunk/core-api/pom.xml (original)
+++ james/server/trunk/core-api/pom.xml Sun Dec 12 11:07:09 2010
@@ -27,8 +27,15 @@
   <groupId>org.apache.james</groupId>
   <artifactId>james-server-core-api</artifactId>
   <name>Apache James Server Core API</name>
-
- <build>
+  <properties>
+    <james.osgi.export>
+      org.apache.james.*
+    </james.osgi.export>
+    <james.osgi.import>
+      *
+    </james.osgi.import>
+  </properties> 
+  <build>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -62,26 +69,7 @@
           </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.services.*, org.apache.james.lifecycle.*</Export-Package>
-            <Embed-Dependency>*;scope=runtime</Embed-Dependency>
-          </instructions>
-        </configuration>
-      </plugin>
+      
     </plugins>
   </build>
 

Modified: james/server/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/pom.xml?rev=1044792&r1=1044791&r2=1044792&view=diff
==============================================================================
--- james/server/trunk/pom.xml (original)
+++ james/server/trunk/pom.xml Sun Dec 12 11:07:09 2010
@@ -154,7 +154,34 @@
           </filesets>
         </configuration>
       </plugin>
-      
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>2.1.0</version>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <id>bundle-manifest</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>manifest</goal>
+            </goals>
+          </execution>
+        </executions>
+
+        <configuration>
+          <excludeDependencies>${camel.osgi.exclude.dependencies}</excludeDependencies>
+          <instructions>
+            <Bundle-Name>${project.artifactId}</Bundle-Name>
+            <Bundle-SymbolicName>${james.osgi.symbolic.name}</Bundle-SymbolicName>
+            <Export-Package>${james.osgi.export}</Export-Package>
+            <Import-Package>${james.osgi.import}</Import-Package>
+            <DynamicImport-Package>${james.osgi.dynamic}</DynamicImport-Package>
+            <Implementation-Title>Apache James Server</Implementation-Title>
+            <Implementation-Version>${project.version}</Implementation-Version>
+          </instructions>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
   



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org