缺少工件 - 不支持Websphere Mq 7.0的版本

时间:2016-07-18 07:21:36

标签: java spring ibm-mq

我是Websphere Mq的新手。我正在尝试使用Spring Jms构建连接。出于学习目的,我正在尝试一些例子。

的pom.xml http://maven.apache.org/xsd/maven-4.0.0.xsd">     4.0.0

<groupId>com.java.geek</groupId>
<artifactId>sample-spring-was-jms</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

<name>sample-spring-was-jms</name> 
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <version.spring>3.0.5.RELEASE</version.spring>
    <version.was>7.0.1.3</version.was>
</properties>

<dependencies>
    <dependency>
        <groupId>com.ibm.websphere</groupId>
        <artifactId>runtime</artifactId>
        <version>${version.was}</version>
    </dependency>

    <dependency>
        <groupId>com.ibm.mq</groupId>
        <artifactId>mq</artifactId>
        <version>${version.was}</version>
    </dependency>

    <dependency>
        <groupId>com.ibm.mq</groupId>
        <artifactId>mqjms</artifactId>
        <version>${version.was}</version>
    </dependency>

    <dependency>
        <groupId>com.ibm.mq</groupId>
        <artifactId>dhbcore</artifactId>
        <version>${version.was}</version>
    </dependency>

    <dependency>
        <groupId>com.ibm.ws.webservices</groupId>
        <artifactId>thinclient</artifactId>
        <version>${version.was}</version>
    </dependency>

    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.14</version>
    </dependency>

    <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-jms_1.1_spec</artifactId>
        <version>1.1.1</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>${version.spring}</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>${version.spring}</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>${version.spring}</version>
    </dependency>

    <dependency>
        <groupId>com.ibm.sibc</groupId>
        <artifactId>sibc.jms</artifactId>
        <version>6.1</version>
    </dependency>

    <dependency>
        <groupId>com.ibm.sibc</groupId>
        <artifactId>sibc.jndi</artifactId>
        <version>6.1</version>
    </dependency>

    <dependency>
        <groupId>com.ibm.sibc</groupId>
        <artifactId>sibc.orb</artifactId>
        <version>6.1</version>
    </dependency>

</dependencies>

我收到了错误,&#34;遗失了工件&#34;无论我在哪里使用$ {version.was}。任何人都知道它支持哪个版本?或者我在做任何其他错误。请建议。

1 个答案:

答案 0 :(得分:0)

5.3.07版本支持mq和mqjms。

对于dhbcore,如果您的系统上安装了Websphere Mq,那么您可以从他们的文件中获取该文件。

        <dependency>
            <groupId>com.ibm</groupId>
            <artifactId>dhbcore</artifactId>
            <version>5.3.07</version>
            <scope>system</scope>
            <systemPath>${basedir}/lib/dhbcore.jar</systemPath>
        </dependency>