Code example: OSGi manifest development
You must include a MANIFEST.MF file in your META-INF directory.
MANIFEST.MF
The code example included implements the user exit Java APIs in an OSGi services bundle using Eclipse and Maven. The example is for reference only and is not intended to be used without your modification.
<!--
* *****************************************************************************
*
* IBM Confidential
*
* OCO Source Materials
*
* 5725Q72
*
* (C) Copyright IBM Corp. 2013, 2014
*
* The source code for this program is not published or otherwise divested of its
* trade secrets, irrespective of what has been deposited with the U.S. Copyright
* Office.
*
* The sample contained herein is provided to you "AS IS".
*
* It is furnished by IBM as a simple example and has not been thoroughly tested
* under all conditions. IBM, therefore, cannot guarantee its reliability,
* serviceability or functionality.
*
* This sample may include the names of individuals, companies, brands and products
* in order to illustrate concepts as completely as possible. All of these names
* are fictitious and any similarity to the names and addresses used by actual
* persons or business enterprises is entirely coincidental.
*
* ******************************************************************************
-->
<!--
*******************************************************************************
*
* EXAMPLE required MF file for OSGi development with Eclipse.
*
*******************************************************************************
-->
Subsystem-ManifestVersion: 1
Subsystem-SymbolicName: SampleUserExitInterfaces-1.0; visibility=public
Subsystem-Version: 1.0.0
Subsystem-Content: SampleUserExitInterfaces; location="usr/shared/feature_bundles/SampleUserExitInterfaces-1.1-SNAPSHOT.jar"
Subsystem-Type: com.ibm.websphere.feature
IBM-API-Package: com.ibm.b2b.userexit.interfaces; version="0.0.0"; type="ibm-api",
IBM-Feature-Version: 1
For OSGi development with the maven plug-in, you must include both the pom.xml and the pom.properties files in your META-INF/maven directory. The example is for reference only and is not intended to be used without your modification.
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>buildsettings</artifactId>
<groupId>com.ibm.b2b.build</groupId>
<version>1.1-SNAPSHOT</version>
</parent>
<groupId>SampleUserExit</groupId>
<artifactId>SampleUserExit2</artifactId>
<version>1.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<packaging>bundle</packaging>
<dependencies>
<dependency>
<groupId>SampleUserExitInterfaces</groupId>
<artifactId>SampleUserExitInterfaces</artifactId>
<version>1.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
pom.properties
#Generated by org.apache.felix.bundleplugin
#Sun Oct 06 20:19:29 EDT 2013
version=1.1-SNAPSHOT
groupId=SampleUserExit
artifactId=SampleUserExit2