Search code examples
javamavenwebspherewebsphere-8

Websphere maven dependencies


I want to create bean which will integrate with WOLA (integration with COBOL).

In order to do so I need annotate bean by @RemoteHome(com.ibm.websphere.ola.ExecuteHome.class). However this is IBM artifact which should reside in ola_apis.jar.

Do you know how can I resolve this dependency? How to add it to pom? I'm searching for some IBM repository but cannot find any.

My understanding is that for creating EAR for Websphere I should be able to create simple maven project in Netbeans.


Solution

  • IBM provides the APIs required for the Liberty profile in an IBM hosted maven repository. The maven repository is here. Once your maven can find this repository for the WOLA API you would want to use the following in your pom:

    <dependency>
      <groupId>com.ibm.websphere.appserver.api</groupId>
      <artifactId>com.ibm.websphere.appserver.api.zosLocalAdapters</artifactId>
      <version>1.0.0</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    

    Technically these are the Liberty profile APIs, but in this case they APIs are common between liberty profile and full profile so there shouldn't be a problem using it.