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

后端 未结 9 1510
伪装坚强ぢ
伪装坚强ぢ 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 06:57

    In ActiveMQ as well as some other projects like Qpid JMS we pull in the JMS spec classes from Apache Geronimo JARs, the 1.1 APIs are available in this dependency:

      
        org.apache.geronimo.specs
        geronimo-jms_1.1_spec
        1.1.1
      
    

    For JMS 2 APIs you'd need to use a different dependency, for instance

      
        org.apache.geronimo.specs
        geronimo-jms_2.0_spec
        1.0-alpha-2
      
    

    These are both Apache 2.0 licensed dependencies.

提交回复
热议问题