Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Where do I get javax:jms:jms:jar:1.1 for maven2? Error message is misleadi

843830Feb 29 2008
I decided to give this ActiveMQ thing a spin and created a simple pom.
When I run
$mvn install

I get the following error message (see below).

I went to the following URL : http://java.sun.com/products/jms/docs.html
to download a jar to put in the repo but at this URL there are only PDF files (no reference impl's).

What to do?


--- Error message
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.jms:jms:jar:1.1

Try downloading the file manually from:
http://java.sun.com/products/jms/docs.html

Then, install it using the command:
mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=url -DrepositoryId=[id]

Path to dependency:
1) shift:activemq-sample:jar:1.0-SNAPSHOT
2) log4j:log4j:jar:1.2.15
3) javax.jms:jms:jar:1.1

----------
1 required artifact is missing.

for artifact:
shift:activemq-sample:jar:1.0-SNAPSHOT

from the specified remote repositories:
http://people.apache.org/repo/m2-snapshot-repository (http://people.apache.org/repo/m2-snapshot-repository/),
maven2-repository.dev.java.net (http://download.java.net/maven/2/),
central (http://repo1.maven.org/maven2)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2008
Added on Feb 29 2008
0 comments
1,744 views