maven 库中添加 net.sf.json JSONArray 引用的jar包 net.sf.json-lib问题

net.sf.json  JSONArray 引用的jar包 net.sf.json-lib问题:

1.注意点: classifier是必须的一般会遗漏
   标准格式:

                <dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>

2. pom.xml文件的Dependencies打开方式下,加载jar包两种

   Dependencies 和 Dependency Management 两种 add

   建议先采用Dependencies 的add 添加jar包,
 
   至于二者的区别后续再补充


maven的相关配置,了解下远程库和中央库的配置

猜你喜欢

转载自lhb319lhb.iteye.com/blog/2241554