#测试
pom2 为模拟的插件jar,pom3为实际项目。

##scope=test
##* test,只在测试时使用,用于编译和运行测试代码。不会随项目发布。
###在pom3中引用pom2

###在main包下 找不到Need这个类

###而在test包下可以使用

###pom显示

###调用package无法执行
#测试
pom2 为模拟的插件jar,pom3为实际项目。
##scope=test
##* test,只在测试时使用,用于编译和运行测试代码。不会随项目发布。
###在pom3中引用pom2
###在main包下 找不到Need这个类
###而在test包下可以使用
###pom显示
###调用package无法执行
本文标题:Maven作用范围 test
本文链接:https://www.haomeiwen.com/subject/dzoayxtx.html
网友评论