You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by lanchez <ap...@purpleblade.net> on 2008/03/01 05:09:46 UTC
Misleading error message in Maven2? If not where are .jar files?
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
Re: Misleading error message in Maven2? If not where are .jar files?
Posted by Wayne Fay <wa...@gmail.com>.
Or just use the Geronimo spec jars:
http://repo1.maven.org/maven2/geronimo-spec/geronimo-spec-jms/1.1-rc4/
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-jms</artifactId>
<version>1.1-rc4</version>
Wayne
On 2/29/08, Wendy Smoak <ws...@gmail.com> wrote:
> On Fri, Feb 29, 2008 at 9:09 PM, lanchez <ap...@purpleblade.net> wrote:
>
> > 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).
>
> There's one link for the specification, and another that says
> "Download the version 1.1 API Documentation, ___Jar___ and Source".
> The latter should have what you're looking for.
>
> There's more info about Sun jars, here:
> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Misleading error message in Maven2? If not where are .jar files?
Posted by Wendy Smoak <ws...@gmail.com>.
On Fri, Feb 29, 2008 at 9:09 PM, lanchez <ap...@purpleblade.net> wrote:
> 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).
There's one link for the specification, and another that says
"Download the version 1.1 API Documentation, ___Jar___ and Source".
The latter should have what you're looking for.
There's more info about Sun jars, here:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org