Fix for: Could not find artifact javax.jms:jms:jar:1.1 in central

Maven can’t find JMS, here is the fix:

Well Sun decided the licensing of JMS wasn’t cool enough to put in the normal repository, so instead, comment out your code about the sun’s version of JMS and put in Geronimo’s version of JMS (you do know that Apache Geronimo is now a full fledged JAVA EE 6 certified application server, don’t you?), which works just as well:

<!–dependency>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<scope>${dependency.scope}</scope>
</dependency–>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jms_1.1_spec</artifactId>
<version>1.1.1</version>
<scope>${dependency.scope}</scope>
</dependency>

 

Advertisements

About SunKing2

Former web developer, guitar player, started Piano 2012 -yes still doing it! Recovery, sobriety, mental health advocate.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s