标签:
<project>
<dependencies>
<dependency>
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>...</version>
<exclusions>
<exclusion>
<groupId>...</groupId>
<artifactId>...</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependency>
<groupId>javax.sql</groupId>
<artifactId>jdbc-stdext</artifactId>
<version>2.0</version>
<scope></scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
依赖范围(scope) | 测试classpath | 编译classpath | 运行classpath | 例子 |
compile | Y | Y | Y | spring-core |
provided | Y | Y | servlet-api | |
test | Y | junit | ||
runtime | Y | Y | JDBC驱动实现 | |
system | Y | Y | 本地的,Maven仓库之外的类库文件 |
标签:
原文地址:http://blog.csdn.net/sunnyyoona/article/details/50609297