3

I am trying to build a JMS (activeMq) based application using gradle. I need the javax.jms api dependency to be downloaded. I add this to my compile time dependency:

dependencies{ compile 'org.springframework:spring-jms:'+deps.springVersion, 'org.springframework:spring-messaging:'+deps.springVersion, 'javax.jms:jms:1.1' } 

Upon gradle build, it says that the jar cannot be downloaded. When I navigate to the maven Central and click on download jar, the jar is not present, so I guess that's why the jar is not getting downloaded by gradle. How can I include this dependency in gradle ? is there a way out ?

1
  • Yep, that jar is not in Maven Central that's why you can't get it. Try this: stackoverflow.com/a/6336137/3248346 Commented Jan 21, 2015 at 20:27

1 Answer 1

1

In fact, there's no jar file, only pom. As can be seen here this is the dependency You're looking for.

Your dependencies block will be:

dependencies{ compile 'org.springframework:spring-jms:'+deps.springVersion, 'org.springframework:spring-messaging:'+deps.springVersion, 'org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1' } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.