Intellij idea maven 使用问题小记

1.用Intellij idea 导入 maven project ,发现依赖不能自动下载
解决:
1.配置如下
《Intellij idea maven 使用问题小记》
2.找到maven视图,reimport
《Intellij idea maven 使用问题小记》

2.不能自动add library maven
解决:
1.设置automatically,如下图
《Intellij idea maven 使用问题小记》
2.如果自动导入不起作用,那么 (来自stack overflow)
Close your project window (and IntelliJ) and remove all *.iml files and all .idea folders
(there should be one per module)
Run mvn clean install from the command line
Re-import the project into IntelliJ and pay attention when it asks you to enable auto-import
在maven project 视图,再reimport一次。

也许还会有个别的需要add library maven,但是比之前少很多,剩下的手动处理就行了。

    原文作者:liumang
    原文地址: https://segmentfault.com/a/1190000009449467
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞