Missing artifact com.ibm:com.ibm.mqjms:jar: 5.3.07

◇◆丶佛笑我妖孽 提交于 2019-12-07 01:59:18

问题


I added com.ibm.mqjms maven dependency in my pom.xml:

<dependency>
 <groupId>com.ibm</groupId>
 <artifactId>com.ibm.mqjms</artifactId>
 <version>5.3.07</version>
</dependency>

And it's giving me:

The following artifacts could not be resolved: com.ibm:com.ibm.mqjms:jar:5.3.07, com.ibm:com.ibm.mq:jar:5.3.07, javax.naming:jndi:jar:1.2.1, javax.resource:connector:jar:1.0, javax.transaction:jta:jar:1.0.1B, javax.jms:jms:jar:1.1: Could not find artifact com.ibm:com.ibm.mqjms:jar:5.3.07 in central (http://repo.maven.apache.org/maven2)

Any idea how can I fix it?


回答1:


Below JARs are proprietary - hence they will not resolve through a public Maven repository like Maven Central. These JARs need to be obtained from the WebSphere MQ installation directory and manually deployed to our local Maven repository.:

<dependency>
    <groupId>com.ibm</groupId>
    <artifactId>com.ibm.mqjms</artifactId>
    <version>${webSphereMQVersion}</version>
</dependency>
<dependency>
    <groupId>com.ibm</groupId>
    <artifactId>com.ibm.mq.jmqi</artifactId>
    <version>${webSphereMQVersion}</version>
</dependency>
<dependency>
    <groupId>com.ibm</groupId>
    <artifactId>com.ibm.disthub2.dhbcore</artifactId>
    <version>${webSphereMQVersion}</version>
</dependency>



回答2:


Try this it worked for me

<dependency>
<groupId>com.ibm.mq</groupId>
<artifactId>allclient</artifactId>
<version>9.0.0.0</version>
<type>jar</type>
</dependency>


来源:https://stackoverflow.com/questions/32742383/missing-artifact-com-ibmcom-ibm-mqjmsjar-5-3-07

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!