摘要: 转自http://www.myexception.cn/software/463924.htmlmaven的依赖范围依赖范围是用来控制依赖与3种classpath(编译classpath,测试classpath,运行classpath)的关系。maven有以下几种依赖范围:Compile:编译依赖范围。默认使用此依赖范围,其下的maven依赖,对于编译,测试,运行classpath都有效。Test:测试依赖范围。只对测试classpath有效,编译主代码或运行项目时无法使用此依赖。典型例子如junit。Provided:已提供依赖范围。其对于编译与测试classpath有效,运行时无效。如在w 阅读全文
posted @ 2013-02-03 20:59 beiyeren 阅读(2380) 评论(0) 推荐(0) 编辑