[json-lib-user] error while retrieving jar from maven2
Brought to you by:
aalmiray
From: Thinkboy <man...@gm...> - 2008-02-13 10:27:27
|
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. .... |