maven配置scope说明

idea中出现类import org.junit.Test; 没法导入,但pom.xml中含有junit包,缘由为:scope属性。html maven依赖中scope默认为compile,指定了依赖的做用范围。maven 做用范围包括,所在项目的测试、编译、运行、打包等生命周期 <dependency> <groupId>junit</groupId> <artifactId>j
相关文章
相关标签/搜索