在使用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://www.toymoban.com/news/detail-730021.html
文章来源地址https://www.toymoban.com/news/detail-730021.html
到了这里,关于maven使用报警告的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!