Re: [json-lib-user] error while retrieving jar from maven2
Brought to you by:
aalmiray
|
From: Andres A. <aal...@ya...> - 2008-02-13 16:44:15
|
You are missing on last piece of info, the classifier. Json-lib comes in two flavors: jdk3 and jdk5 so you need to specify which version you need. The following should work for jdk5
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.2</version>
<classifier>jdk5</classifier>
</dependency>
Cheers,
Andres
-------------------------------------------
http://jroller.com/aalmiray
http://www.linkedin.com/in/aalmiray
--
What goes up, must come down. Ask any system administrator.
There are 10 types of people in the world: Those who understand binary, and those who don't.
To understand recursion, we must first understand recursion.
----- Original Message ----
From: Thinkboy <man...@gm...>
To: jso...@li...
Sent: Wednesday, February 13, 2008 2:27:18 AM
Subject: [json-lib-user] error while retrieving jar from maven2
hi,
I
set
up
json-lib
dependency
in
my
maven2
pom.xml
as
the
following:
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.2</version>
</dependency>
however,
I
received
the
following
error.
pls
advse.
[INFO]
artifact
org.apache.maven.plugins:maven-resources-plugin:
checking
for
updates
from
central
Downloading:
http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.2/json-lib-2.2.jar
[INFO]
------------------------------------------------------------------------
[ERROR]
BUILD
ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
Failed
to
resolve
artifact.
Missing:
----------
1)
net.sf.json-lib:json-lib:jar:2.2
Try
downloading
the
file
manually
from
the
project
website.
Then,
install
it
using
the
command:
mvn
install:install-file
-DgroupId=net.sf.json-lib
-
DartifactId=json-lib
-Dversion=2.2
-Dpackaging=jar
-Dfile=/path/to/file
Alternatively,
if
you
host
your
own
repository
you
can
deploy
the
file
there:
mvn
deploy:deploy-file
-DgroupId=net.sf.json-lib
-
DartifactId=json-lib
-Dversion=2.2
-Dpackaging=jar
-Dfile=/path/to/
file
-Durl=[url]
-DrepositoryId=[id]
Path
to
dependency:
1)
com.mydomain:myapp:jar:1.0
2)
net.sf.json-lib:json-lib:jar:2.2
----------
1
required
artifact
is
missing.
....
-------------------------------------------------------------------------
This
SF.net
email
is
sponsored
by:
Microsoft
Defy
all
challenges.
Microsoft(R)
Visual
Studio
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
json-lib-user
mailing
list
jso...@li...
https://lists.sourceforge.net/lists/listinfo/json-lib-user
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs |