javax.jms.* 在 Maven 中在哪里

huangapple go评论62阅读模式
英文:

Where is javax.jms.* in maven

问题

我正在尝试添加依赖以引入 javax.jms.*

我尝试了许多仓库,但似乎没有这个内容。是否有任何想法是否有一个 Maven 仓库可以获取这个 JAR 包?

我到目前为止尝试过的方法:

compile group: 'javax.jms', name: 'javax.jms-api', version: '2.0.1'
compile group: 'org.glassfish.main.javaee-api', name: 'javax.jms', version: '3.1.2.2'
compile group: 'Javax.jms', name: 'jms', version: '1.1'

注意:代码部分未翻译。

英文:

I am trying to add dependency to pull javax.jms.*

I tried many repos but none seem to have this. Any idea if there is a maven repo to pull this jar?

What I've tried until now:

compile group: 'javax.jms', name: 'javax.jms-api', version: '2.0.1'
compile group: 'org.glassfish.main.javaee-api', name: 'javax.jms', version: '3.1.2.2'
compile group: 'Javax.jms', name: 'jms', version: '1.1'

答案1

得分: 2

如果你只需要 JMS 接口,你可以使用以下代码:

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-jms_2.0_spec</artifactId>
    <version>1.0-alpha-2</version>
</dependency>

这个依赖使用了Apache 软件许可证,版本 2.0

或者你可以使用以下代码:

<dependency>
   <groupId>jakarta.jms</groupId>
   <artifactId>jakarta.jms-api</artifactId>
   <version>2.0.3</version>
</dependency>

这个依赖使用了Eclipse Public License 2.0

英文:

If you just want the JMS interfaces you can use this:

&lt;dependency&gt;
    &lt;groupId&gt;org.apache.geronimo.specs&lt;/groupId&gt;
    &lt;artifactId&gt;geronimo-jms_2.0_spec&lt;/artifactId&gt;
    &lt;version&gt;1.0-alpha-2&lt;/version&gt;    
&lt;/dependency&gt;

This dependency uses the Apache Software License, Version 2.0.

Or you can use this:

&lt;dependency&gt;
   &lt;groupId&gt;jakarta.jms&lt;/groupId&gt;
   &lt;artifactId&gt;jakarta.jms-api&lt;/artifactId&gt;
   &lt;version&gt;2.0.3&lt;/version&gt;
&lt;/dependency&gt;

This uses the Eclipse Public License 2.0.

huangapple
  • 本文由 发表于 2020年9月17日 01:36:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/63925274.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定