Author: jconlon
Date: Wed Jan 31 17:26:38 2007
New Revision: 699

Modified:
   slf4j/trunk/slf4j-nop/pom.xml
   slf4j/trunk/slf4j-nop/src/main/resources/META-INF/MANIFEST.MF

Log:
Added configuration in pom.xml to create OSGi manifest in jar.  
In Manifest.mf removed Bundle-Classpath entry and 
removed the import of org.slf4j.impl to prevent overriding the Require-Bundle 
wiring of that package.

Modified: slf4j/trunk/slf4j-nop/pom.xml
==============================================================================
--- slf4j/trunk/slf4j-nop/pom.xml       (original)
+++ slf4j/trunk/slf4j-nop/pom.xml       Wed Jan 31 17:26:38 2007
@@ -29,6 +29,45 @@
       <version>${project.version}</version>
                </dependency>
   </dependencies>
-
-
+
+  <build>
+               <plugins>
+                       
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <configuration>
+                                       <archive>
+                                               <manifestEntries>
+                                                       <Bundle-Version>
+                                                               1.3.0.SNAPSHOT
+                                                       </Bundle-Version>
+                                                       <Bundle-Description>
+                                                               
${project.description}
+                                                       </Bundle-Description>
+                                                       <Implementation-Version>
+                                                               
${project.version}
+                                                       
</Implementation-Version>
+                                               </manifestEntries>
+                                               <manifestFile>
+                                                       
src/main/resources/META-INF/MANIFEST.MF
+                                               </manifestFile>
+                                       </archive>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>bundle-test-jar</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>jar</goal>
+                                                       <goal>test-jar</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+
+               </plugins>
+
+       </build>
+  
 </project>
\ No newline at end of file

Modified: slf4j/trunk/slf4j-nop/src/main/resources/META-INF/MANIFEST.MF
==============================================================================
--- slf4j/trunk/slf4j-nop/src/main/resources/META-INF/MANIFEST.MF       
(original)
+++ slf4j/trunk/slf4j-nop/src/main/resources/META-INF/MANIFEST.MF       Wed Jan 
31 17:26:38 2007
@@ -5,5 +5,4 @@
 Bundle-Vendor: SLF4J.ORG
 Require-Bundle: slf4j.api;visibility:=reexport
 Export-Package: org.slf4j, org.slf4j.impl
-Import-Package: org.slf4j.spi, org.slf4j.impl
-Bundle-ClassPath: ., target/classes/
\ No newline at end of file
+Import-Package: org.slf4j.spi
\ No newline at end of file
_______________________________________________
dev mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to