Thread: Re: [json-lib-user] using json-lib in maven dependency
Brought to you by:
aalmiray
From: Andres A. <aal...@ya...> - 2007-10-16 15:15:00
|
Hi John,=0A=0AYou'll have to add a <classifier> tag like so:=0A=0A<dependen= cy>=0A <groupId>net.sf.json-lib</groupId>=0A <artifactId>json= -lib</artifactId>=0A <version>2.1</version>=0A <classifier>jd= k5</classifier>=0A</dependency>=0A=0ACheers,=0AAndres=0A =0A---------------= ----------------------------=0Ahttp://jroller.com/page/aalmiray=0Ahttp://ww= w.linkedin.com/in/aalmiray=0A--=0AWhat goes up, must come down. Ask any sys= tem administrator.=0AThere are 10 types of people in the world: Those who u= nderstand binary, and those who don't.=0ATo understand recursion, we mu= st first understand recursion.=0A=0A----- Original Message ----=0AFrom: Joh= n Cartwright <Joh...@no...>=0ATo: jso...@li...urcef= orge.net=0ASent: Tuesday, October 16, 2007 9:46:51 AM=0ASubject: [json-lib-= user] using json-lib in maven dependency=0A=0A=0AHello All,=0A=0AI'm having= a little trouble getting json-lib to work w/ my maven2 =0Aproject. Trying= to use a dependency like:=0A=0A<dependency>=0A <groupId>net.sf.json= -lib</groupId>=0A <artifactId>json-lib</artifactId>=0A <versi= on>2.1</version>=0A</dependency>=0A=0AI think the problem lies between the = mismatch of the artifactId, =0A"json-lib-2.1-jdk15.jar =0A<http://repo1.mav= en.org/maven2/net/sf/json-lib/json-lib/2.1/json-lib-2.1-jdk15.jar>" =0Aand = the pom, "json-lib-2.1.pom =0A<http://repo1.maven.org/maven2/net/sf/json-li= b/json-lib/2.1/json-lib-2.1.pom>". =0AAny advice on how to deal w/ this or= would it be appropriate to upload=0A a =0Ajar file that matches the pom?= =0A=0AThanks!=0A=0A-- john=0A=0A=0A----------------------------------------= ---------------------------------=0AThis SF.net email is sponsored by: Splu= nk Inc.=0AStill grepping through log files to find problems? Stop.=0ANow S= earch log events and configuration files using AJAX and a browser.=0ADownlo= ad your FREE copy of Splunk now >> http://get.splunk.com/=0A_______________= ________________________________=0Ajson-lib-user mailing list=0Ajson-lib-us= er...@li...=0Ahttps://lists.sourceforge.net/lists/listinfo/jso= n-lib-user=0A=0A=0A=0A=0A=0A=0A ______________________________________= ______________________________________________=0ATonight's top picks. What = will you watch tonight? Preview the hottest shows on Yahoo! TV.=0Ahttp://tv= .yahoo.com/ =0A |
From: John C. <Joh...@no...> - 2007-10-16 15:21:29
|
Thanks for your prompt reply Andres - adding a classifier of "jdk15" works perfectly! -- john Andres Almiray wrote: > Hi John, > > You'll have to add a <classifier> tag like so: > > <dependency> > <groupId>net.sf.json-lib</groupId> > <artifactId>json-lib</artifactId> > <version>2.1</version> > <classifier>jdk5</classifier> > </dependency> > > Cheers, > Andres > > ------------------------------------------- > http://jroller.com/page/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: John Cartwright <Joh...@no...> > To: jso...@li... > Sent: Tuesday, October 16, 2007 9:46:51 AM > Subject: [json-lib-user] using json-lib in maven dependency > > Hello All, > > I'm having a little trouble getting json-lib to work w/ my maven2 > project. Trying to use a dependency like: > > <dependency> > <groupId>net.sf.json-lib</groupId> > <artifactId>json-lib</artifactId> > <version>2.1</version> > </dependency> > > I think the problem lies between the mismatch of the artifactId, > "json-lib-2.1-jdk15.jar > <http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.1/json-lib-2.1-jdk15.jar>" > > and the pom, "json-lib-2.1.pom > <http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.1/json-lib-2.1.pom>". > > Any advice on how to deal w/ this or would it be appropriate to upload a > jar file that matches the pom? > > Thanks! > > -- john > > > ------------------------------------------------------------------------- > This SF.net <http://SF.net> email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > json-lib-user mailing list > jso...@li... > <mailto:jso...@li...> > https://lists.sourceforge.net/lists/listinfo/json-lib-user > > > ------------------------------------------------------------------------ > Looking for a deal? Find great prices on flights and hotels > <http://us.rd.yahoo.com/evt=47094/*http://farechase.yahoo.com/;_ylc=X3oDMTFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20-> > with Yahoo! FareChase. |
From: Yuen C. L. <yue...@gm...> - 2007-10-16 15:59:14
|
Thanks a lot Andres. All these while, I downloaded the artifact, renamed it and manually installed it, argh! On 10/16/07, Andres Almiray <aal...@ya...> wrote: > > Hi John, > > You'll have to add a <classifier> tag like so: > > <dependency> > <groupId>net.sf.json-lib</groupId> > <artifactId>json-lib</artifactId> > <version>2.1</version> > <classifier>jdk5</classifier> > </dependency> > > Cheers, > Andres > > ------------------------------------------- > http://jroller.com/page/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: John Cartwright <Joh...@no...> > To: jso...@li... > Sent: Tuesday, October 16, 2007 9:46:51 AM > Subject: [json-lib-user] using json-lib in maven dependency > > Hello All, > > I'm having a little trouble getting json-lib to work w/ my maven2 > project. Trying to use a dependency like: > > <dependency> > <groupId>net.sf.json-lib</groupId> > <artifactId>json-lib</artifactId> > <version>2.1</version> > </dependency> > > I think the problem lies between the mismatch of the artifactId, > "json-lib-2.1-jdk15.jar > < > http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.1/json-lib-2.1-jdk15.jar>" > > and the pom, "json-lib-2.1.pom > < > http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.1/json-lib-2.1.pom>". > > Any advice on how to deal w/ this or would it be appropriate to upload a > jar file that matches the pom? > > Thanks! > > -- john > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > json-lib-user mailing list > jso...@li... > https://lists.sourceforge.net/lists/listinfo/json-lib-user > > > ------------------------------ > Looking for a deal? Find great prices on flights and hotels<http://us.rd.yahoo.com/evt=47094/*http://farechase.yahoo.com/;_ylc=X3oDMTFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20->with Yahoo! FareChase. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > json-lib-user mailing list > jso...@li... > https://lists.sourceforge.net/lists/listinfo/json-lib-user > > -- Cheers, Yuen-Chi Lian "I do not seek; I find." - Pablo Picasso |