maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lanchez <apache_supp...@purpleblade.net>
Subject Misleading error message in Maven2? If not where are .jar files?
Date Sat, 01 Mar 2008 04:09:46 GMT

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message