[logback-dev] svn commit: r2148 - in logback/trunk: logback-classic logback-core

noreply.ceki at qos.ch noreply.ceki at qos.ch
Mon Feb 9 22:07:37 CET 2009


Author: ceki
Date: Mon Feb  9 22:07:37 2009
New Revision: 2148

Modified:
   logback/trunk/logback-classic/pom.xml
   logback/trunk/logback-core/pom.xml

Log:
Initial attempting at fixing LBCLASSIC-101 via apache felix's maven-bundle-plugin.

Modified: logback/trunk/logback-classic/pom.xml
==============================================================================
--- logback/trunk/logback-classic/pom.xml	(original)
+++ logback/trunk/logback-classic/pom.xml	Mon Feb  9 22:07:37 2009
@@ -151,6 +151,10 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
+        <configuration>          
+          <archive>  
+          <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>          </archive> 
+        </configuration>
         <executions>
           <execution>
             <id>bundle-test-jar</id>
@@ -178,6 +182,27 @@
           </excludes>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <id>bundle-manifest</id>
+            <phase>process-classes</phase>
+            <goals>    
+              <goal>manifest</goal>
+            </goals>   
+          </execution>
+        </executions>
+        <configuration>
+          <instructions>
+            <Export-Package>ch.qos.logback.classic.*</Export-Package>
+            <Export-Package>org.slf4j.impl</Export-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+
     </plugins>
   </build>
 

Modified: logback/trunk/logback-core/pom.xml
==============================================================================
--- logback/trunk/logback-core/pom.xml	(original)
+++ logback/trunk/logback-core/pom.xml	Mon Feb  9 22:07:37 2009
@@ -97,6 +97,10 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
+        <configuration>          
+          <archive>  
+            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>          </archive> 
+        </configuration>
         <executions>
           <execution>
             <id>bundle-test-jar</id>
@@ -109,6 +113,25 @@
         </executions>
       </plugin>
 
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <id>bundle-manifest</id>
+            <phase>process-classes</phase>
+            <goals>    
+              <goal>manifest</goal>
+            </goals>   
+          </execution>
+        </executions>
+        <configuration>
+          <instructions>
+            <Export-Package>ch.qos.logback.core.*</Export-Package>
+          </instructions>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 


More information about the logback-dev mailing list