Maven 问题集
Posted 水木山川
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven 问题集相关的知识,希望对你有一定的参考价值。
1.引入 net.sf.json.JSONObject 类配置POM,JSONObject需要依赖如下依赖包:
json-lib,commons-beanutils,commons-collections,commons-lang,commons-logging,ezmorph
1 <properties> 2 <!--JSONObject--> 3 <json-lib.version>2.4</json-lib.version> 4 <commons-lang.version>2.5</commons-lang.version> 5 <commons-collections.version>3.2.1</commons-collections.version> 6 <commons-beanutils.version>1.8.0</commons-beanutils.version> 7 <commons-logging.version>1.1.1</commons-logging.version> 8 <ezmorph.version>1.0.6</ezmorph.version> 9 </properties>
1 <!--JSONObject--> 2 <dependency> 3 <groupId>net.sf.json-lib</groupId> 4 <artifactId>json-lib</artifactId> 5 <version>${json-lib.version}</version> 6 <classifier>jdk15</classifier> 7 </dependency> 8 9 <dependency> 10 <groupId>commons-beanutils</groupId> 11 <artifactId>commons-beanutils</artifactId> 12 <version>${commons-beanutils.version}</version> 13 </dependency> 14 15 <dependency> 16 <groupId>commons-logging</groupId> 17 <artifactId>commons-logging</artifactId> 18 <version>${commons-logging.version}</version> 19 </dependency> 20 <dependency> 21 <groupId>net.sf.ezmorph</groupId> 22 <artifactId>ezmorph</artifactId> 23 <version>${ezmorph.version}</version> 24 </dependency> 25 <!-- apache-common --> 26 <dependency> 27 <groupId>commons-lang</groupId> 28 <artifactId>commons-lang</artifactId> 29 <version>${commons-lang.version}</version> 30 </dependency> 31 <dependency> 32 <groupId>commons-collections</groupId> 33 <artifactId>commons-collections</artifactId> 34 <version>${commons-collections.version}</version> 35 </dependency>
参考资料:http://mvnrepository.com/artifact/net.sf.json-lib/json-lib/2.4
持续更新中,谢谢关注!
以上是关于Maven 问题集的主要内容,如果未能解决你的问题,请参考以下文章