Maven: Problem: Using json-lib in maven project
2015-05-14 22:53
375 查看
Problem:
Want to usejson-libin maven project
Solution:
If:<dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version> </dependency>
Then:
在
install的时候总是说找不到这个jar
mvnrepository上的小问题,
json-lib提供了两个jdk版本的实现, json-lib-2.1-jdk13.jar和json-lib-2.1-jdk15.jar,于是把dependency的描述修改成下面的形式就解决问题了:
<!--json-lib--> <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version> <classifier>jdk15</classifier> </dependency>
相关文章推荐
- Maven: Problem: Using Jedis in maven project
- Using JsonCpp in your project
- How to add net.sf.json-lib dependendy in Maven
- Creating Dynamic Web Project using Maven in Eclipse
- maven 加入json-lib.jar 报错 Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile
- WebContent/WEB-INF/lib/readme.txt’ in project ‘xxxxxxxxx’ cannot be read or is not a valid ZIP file解
- Conversion between json and object using SBJson lib
- Using VS2010 Develop ActiveX Control in MFC Project
- maven install Unable to locate the Javac Compiler in: C:\Program Files\Java\jre7\..\lib\tools.jar
- maven 加入json-lib.jar 报错 Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile
- maven项目 加入json-lib-2.2.3-jdk15.jar 报错 Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile
- 解决maven Generating project in Interactive mode
- Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects
- maven 加入json-lib 的jar包,报错:Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile的解决方法
- Using Visual C++ DLLs in a C++Builder Project
- SLF4J with Logback in a Maven Project | Mograblog
- How To Fix “Problem with MergeList /var/lib/apt/lists” Error In Ubuntu 11.04
- Maven: Maven Assembly Plugin configuration with multiple modules in a maven project
- 在XP系统下搭建maven环境出的问题 Unable to locate the Javac Compiler in: C:\Program Files\Java\jre6\..\lib\tools.jar
- using HttpClient and sending json data to RESTful server in adroind