简体   繁体   English

Websphere Maven 依赖项

[英]Websphere maven dependencies

I want to create bean which will integrate with WOLA (integration with COBOL).我想创建将与 WOLA 集成的 bean(与 COBOL 集成)。

In order to do so I need annotate bean by @RemoteHome(com.ibm.websphere.ola.ExecuteHome.class) .为此,我需要通过@RemoteHome(com.ibm.websphere.ola.ExecuteHome.class)注释 bean。 However this is IBM artifact which should reside in ola_apis.jar.然而,这是应该驻留在 ola_apis.jar 中的 IBM 工件。

Do you know how can I resolve this dependency?你知道我该如何解决这个依赖? How to add it to pom?如何将其添加到pom? I'm searching for some IBM repository but cannot find any.我正在搜索一些 IBM 存储库,但找不到任何存储库。

My understanding is that for creating EAR for Websphere I should be able to create simple maven project in Netbeans.我的理解是,为了为 Websphere 创建 EAR,我应该能够在 Netbeans 中创建简单的 maven 项目。

IBM provides the APIs required for the Liberty profile in an IBM hosted maven repository. IBM 在 IBM 托管的 maven 存储库中提供 Liberty Profile 所需的 API。 The maven repository is here . Maven 存储库在这里 Once your maven can find this repository for the WOLA API you would want to use the following in your pom:一旦您的 Maven 可以找到 WOLA API 的此存储库,您将希望在 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.从技术上讲,这些是 Liberty 配置文件 API,但在这种情况下,它们的 API 在自由配置文件和完整配置文件之间是通用的,因此使用它应该没有问题。

You can either include the dependency as system scope in your POM (however, this is not recommended), or you take the JAR file and upload it in a custom Maven repository within your company (or at least install it in your local repository).您可以将依赖项作为系统范围包含在您的 POM 中(但是,不推荐这样做),或者您将 JAR 文件上传到您公司内的自定义 Maven 存储库中(或至少将其安装在您的本地存储库中)。 You can choose the group and artifact id as you want, when you do that.执行此操作时,您可以根据需要选择组和工件 ID。

Since those JARs are part of WebSphere, which has a proprietary license, there is no public Maven repository, where you could download it.由于这些 JAR 是具有专有许可的 WebSphere 的一部分,因此没有公共 Maven 存储库,您可以在其中下载它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM