在使用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改为提示版本即可。
来源地址:https://blog.csdn.net/qq_53938468/article/details/129131990