maven 依賴範圍有哪些:java
1. compile 2. test 3. provided --- like servlet 4.runtime 5.system與 systemPath 配置使用 ${java.home}/lib/rt.jarmaven
maven 可選依賴:ide
1. A-B 2.項目B-X(可選依賴) B-Y(可選依賴)code
<dependencies> <dependency> <groupId></groupId> <artifactId></artifactId> <version></version> <optional>true</optional> </dependency> </dependencies>