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)
--
View this message in context:
http://www.nabble.com/Misleading-error-message-in-Maven2---If-not-where-are-.jar-files--tp15772504s177p15772504.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]