What is the right Maven dependency for javax.jms.* classes?

后端 未结 9 1465
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 06:52

I need to import javax.jms.* classes. What is the right dependency to include into a Maven project? I\'m trying javax.jms:jms:1.1, but no luck (it\

相关标签:
9条回答
  • 2020-12-05 07:21

    The Sun license doesn't allow maven repositories to host this (and other) artifacts.

    Here is the documentation explaining this and what you should do instead...

    Maven - Guide to coping with Sun JARs

    What it says is you need to download the JAR manually and then install it into your own local repository or nexus server.

    The pom.xml files hosted at maven central for these artifacts contain information on where you can download the JARs from.

    0 讨论(0)
  • 2020-12-05 07:22

    I have successfully used this one:

    <dependency>
        <groupId>javax.jms</groupId>
        <artifactId>jms</artifactId>
        <version>1.1</version>
    </dependency>
    
    0 讨论(0)
  • 2020-12-05 07:22

    Check out the dependencies listed on grepcode.com.
    I only discovered this site recently, and it rocks!

    http://grepcode.com/search/?query=javax.jms.*

    It looks like the Geronimo jars on maven central should sort your issues out.

    0 讨论(0)
提交回复
热议问题