Maven - scope
gav + sgroupId + artifictId + version + scope
<dependencies>
<dependency>
<groupId>junit
</groupId>
<artifactId>junit
</artifactId>
<version>4.13
</version>
<scope>test
</scope>
</dependency>
</dependencies>
一:gav
二:scope
从Maven仓库导出的依赖Scope默认是provided,请注意
对主程序是否有效对测试程序是否有效是否参与打包是否参与部署
compile√√√√test×√××provided√ (编译可以过,运行不使用该依赖)√××…