Skip to content

Instantly share code, notes, and snippets.

@GDLMadushanka
Created September 29, 2019 05:27
Show Gist options
  • Save GDLMadushanka/69d48160c24504098a9f495a01f7be0c to your computer and use it in GitHub Desktop.
Save GDLMadushanka/69d48160c24504098a9f495a01f7be0c to your computer and use it in GitHub Desktop.
The pom file to create an OSGi bundle from IBM WAS client jars.
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>WAS-client</groupId>
<artifactId>WAS-client</artifactId>
<version>9.0.0</version>
<packaging>bundle</packaging>
<description>
This bundle will wrap thin client jars from IBM WAS
</description>
<url>http://wso2.org</url>
<dependencies>
<dependency>
<groupId>ibm</groupId>
<artifactId>orb</artifactId>
<version>9.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/com.ibm.ws.orb_9.0.jar</systemPath>
</dependency>
<dependency>
<groupId>ibm</groupId>
<artifactId>ejb-client</artifactId>
<version>9.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/com.ibm.ws.ejb.thinclient_9.0.jar</systemPath>
</dependency>
<dependency>
<groupId>ibm</groupId>
<artifactId>sjb-client</artifactId>
<version>9.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/com.ibm.ws.sib.client.thin.jms_9.0.jar</systemPath>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>wso2.releases</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>wso2.snapshots</id>
<name>Apache Snapshot Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Fragment-Host>axis2-transport-jms</Fragment-Host>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name>
<Export-Package>
!javax.*,
com.ibm.websphere.naming.*
</Export-Package>
<Private-Package>
javax.*,
</Private-Package>
<Import-Package/>
<Embed-Dependency>*;scope=system;inline=true</Embed-Dependency>
<DynamicImport-Package>*</DynamicImport-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment