[netcdf-java] OSGi Manifests for NetCDF Java libraries

The patch for NetCDF OSGi got scrubbed so here it is inline:

Index: cdm/pom.xml
===================================================================
--- cdm/pom.xml (revision 13094)
+++ cdm/pom.xml (working copy)
@@ -260,6 +260,43 @@
           </excludes>
         </configuration>
       </plugin>
+      <!-- OSGi manifest information -->
+                        <plugin>
+                                <groupId>org.apache.maven.plugins</groupId>
+                                <artifactId>maven-jar-plugin</artifactId>
+                                <configuration>
+                                        <archive>
+                                                
<manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
+                                                <manifest>
+                                                        
<addClasspath>true</addClasspath>
+                                                </manifest>
+                                        </archive>
+                                </configuration>
+                        </plugin>
+                        <plugin>
+                                <groupId>org.apache.felix</groupId>
+                                <artifactId>maven-bundle-plugin</artifactId>
+                                <version>2.3.4</version>
+                                <extensions>true</extensions>
+                                <configuration>
+                                        
<manifestLocation>target/classes/META-INF</manifestLocation>
+                                        <instructions>
+                                                
<Bundle-Version>${project.version}</Bundle-Version>
+                                                
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
+                                                
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
+ <Import-Package>*;resolution:=optional</Import-Package>
+                                        </instructions>
+                                </configuration>
+                                <executions>
+                                        <execution>
+                                                <id>bundle-manifest</id>
+                                                <phase>process-classes</phase>
+                                                <goals>
+                                                        <goal>manifest</goal>
+                                                </goals>
+                                        </execution>
+                                </executions>
+                        </plugin>
     </plugins>
     <resources>
       <resource>
Index: common/pom.xml
===================================================================
--- common/pom.xml (revision 13094)
+++ common/pom.xml (working copy)
@@ -82,6 +82,43 @@
           </excludes>
         </configuration>
       </plugin>
+      <!-- OSGi manifest information -->
+                        <plugin>
+                                <groupId>org.apache.maven.plugins</groupId>
+                                <artifactId>maven-jar-plugin</artifactId>
+                                <configuration>
+                                        <archive>
+                                                
<manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
+                                                <manifest>
+                                                        
<addClasspath>true</addClasspath>
+                                                </manifest>
+                                        </archive>
+                                </configuration>
+                        </plugin>
+                        <plugin>
+                                <groupId>org.apache.felix</groupId>
+                                <artifactId>maven-bundle-plugin</artifactId>
+                                <version>2.3.4</version>
+                                <extensions>true</extensions>
+                                <configuration>
+                                        
<manifestLocation>target/classes/META-INF</manifestLocation>
+                                        <instructions>
+                                                
<Bundle-Version>${project.version}</Bundle-Version>
+                                                
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
+                                                
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
+                                        </instructions>
+                                </configuration>
+                                <executions>
+                                        <execution>
+                                                <id>bundle-manifest</id>
+                                                <phase>process-classes</phase>
+                                                <goals>
+                                                        <goal>manifest</goal>
+                                                </goals>
+                                        </execution>
+                                </executions>
+                        </plugin>
+
      </plugins>
   </build>

Cheers,

Tisham.



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: