小工具知识网

当前位置: 首页 > 行业知识 > maven使用报警告

行业知识

maven使用报警告

2026-11-09 23:12:26 来源:互联网转载

��在使用maven的自动导包功能给junit导包时,出现warning:

'dependencies.dependency.version' for junit:junit:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 20, column 22

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects 

发现使用自动导包功能时,version标签自动给了值:RELEASE(如下图)

 ​

解决方法:

将鼠标放在junit上,此时会显示junit的版本(我这边是4.13.2),然后将RELEASE改为提示版本即可。

上一篇:民用版服务器怎么设置?

下一篇:织梦CMS前台菜单更换秘籍,轻松更新菜单,轻松实现网站导航升级!