在Maven仓库中托管IBM MQ的约定是什么? [英] What Is The Convention For Hosting IBM MQ In Maven Repos?

查看:188
本文介绍了在Maven仓库中托管IBM MQ的约定是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在应用程序中使用IBM MQ 8.0.0.4,因此我们计划将jar托管在我们的maven存储库管理器(在这种情况下为Nexus OSS 2)中.

We are using IBM MQ 8.0.0.4 in our application and so we are planning on hosting the jars in our maven repository manager (Nexus OSS 2 in this case).

GAV专门用于IBM MQ的约定是什么?

What is the convention for the GAV for IBM MQ specifically?

所需的罐子是:

commonservices.jar
dhbcore.jar
headers.jar
jmqi.jar
mqjms.jar
pcf.jar
mq.jar
Nojndi.jar
jndi.jar
fscontext.jar
providerutil.jar
jms.jar
connector.jar

所有到mq.jar的都是IBM jar.

All of them up to mq.jar are IBM jars.

我应该使用com.ibm组ID吗?

还是com.ibm.mq组ID?

或混合-例如dhbcore.jar的清单显示com.ibm.disthub2

Or a mix - for instance the manifest for dhbcore.jar says com.ibm.disthub2

版本号的约定是什么?应该为所有ibm jar使用8.0.0.4还是应该从清单中获取版本?

What is the convention for the version number? Should I use 8.0.0.4 for all the ibm jars or should I take the version from the manifest?

大多数清单中的清单的版本为8.0.0.4,但commonervices.jarmqjms.jar表示p800-004-151017.在我看来,这仍然像8.0.0.4,但看起来却像一些非Maven的快照约定.

The version in the manifest is 8.0.0.4 in most of them but commonervices.jar and mqjms.jar say p800-004-151017. This still looks like 8.0.0.4 to me but looks like some non-maven snapshot convention.

在这种情况下有哪些约定? (我不是在寻找通用的Maven约定,而是它们如何专门应用于此用例).

What are the conventions in this case? (I'm not looking for the general maven conventions but how they apply specifically to this use case).

推荐答案

更新:

从v9.0.4开始. 0 IBM已将MQ Java客户机接口的副本推送到 com.ibm.mq GroupId下的中央存储库.例如

As of v9.0.4.0 IBM have pushed copies of the MQ Java client interfaces to the Central Repository under the com.ibm.mq GroupId. e.g.

<dependency>
    <groupId>com.ibm.mq</groupId>
    <artifactId>com.ibm.mq.allclient</artifactId>
    <version>9.0.4.0</version>
</dependency>

原始:

在IBM MQ v8.0.0.3和更高版本中,您可以下载包含较少数量的jar文件的纯Java客户端.这被打包为一个自解压的jar文件.可以使用以下链接在Fix Central上下载最新的v8软件包:

At IBM MQ v8.0.0.3 and higher you can download a Java only client which includes a fewer number of jar files. This is packaged as a self extracting jar file. The latest v8 package can be downloaded on Fix Central using this link: IBM MQ JMS and Java 'All Client'

com.ibm.mq.allclient.jar中现在包含了大多数以前分开的罐子.

Most of the previously separate jars are now included in the com.ibm.mq.allclient.jar.

对于 Java的IBM MQ类,您可以在知识中心页面"

For IBM MQ Classes for Java you can find the list of files required on the Knowledge Center page "What is installed for IBM MQ classes for Java":

可重定位的JAR文件
在企业内部,可以将以下文件移动到需要运行Java Java MQ类的系统 应用程序:

Relocatable JAR files
Within an enterprise, the following files can be moved to systems that need to run IBM MQ classes for Java applications:

  • com.ibm.mq.allclient.jar
  • com.ibm.mq.traceControl.jar


对于 JMS的IBM MQ类,您可以在知识中心页面"


For IBM MQ Classes for JMS you can find the list of files required on the Knowledge Center page "What is installed for IBM MQ classes for JMS":

可重定位的JAR文件
在企业内部,可以将以下文件移动到需要为JMS运行IBM MQ类的系统:

Relocatable JAR files
Within an enterprise, the following files can be moved to systems that need to run IBM MQ classes for JMS:

  • com.ibm.mq.allclient.jar
  • com.ibm.mq.traceControl.jar
  • jms.jar
  • fscontext.jar
  • providerutil.jar
  • com.ibm.mq.allclient.jar
  • com.ibm.mq.traceControl.jar
  • jms.jar
  • fscontext.jar
  • providerutil.jar


对于版本号,建议您在示例8.0.0.4中使用它们来自的软件包的版本号.


For version numbers I suggest you use the version number of the package they came from, in your example 8.0.0.4.

这篇关于在Maven仓库中托管IBM MQ的约定是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆