IntelliJ IDEA2020.1版本更新pom文件自動導包的方法


在2020.1.1版本之前IDEA pom文件導包是這樣的

最近新裝新版本IDEA之后,這個圖標沒有了,對於習慣舊操作沒有圖標了還真不習慣。就去idea官網查了下新版本maven更新

2020.1.1使用方法:

1、使用此通知或新的快捷方式(對於Windows為Ctrl+Shift+O,對於Mac為Linux/Shift+Cmd+I)

2、點擊修改pom后,右上角有個小pom,點擊即可

官網對於更新說明百度翻譯了下。

百度翻譯(圖不清楚我貼字)

Maven and Gradle importing updates
IntelliJ IDEA 2020.1 brings a small but important update to our Maven and Gradle users. Instead of the old auto-import, there's now a floating notification in the upper-right part of the editor. Use this notification or a new shortcut (Ctrl+Shift+O for Windows and Linux /Shift+Cmd+I for Mac) to load the changes after you modify the build file. It gets even better: when IntelliJ IDEA detects any changes to the build file made outside the IDE, such as VCS updates, it reloads the related projects automatically.

(Maven和Gradle導入更新
IntelliJ IDEA 2020.1為我們的Maven和Gradle用戶帶來了一個小而重要的更新。與以前的自動導入不同,現在編輯器右上角有一個浮動通知。修改生成文件后,使用此通知或新的快捷方式(對於Windows為Ctrl+Shift+O,對於Mac為Linux/Shift+Cmd+I)加載更改。它變得更好:當IntelliJ IDEA檢測到在IDE外部對構建文件所做的任何更改(如VCS更新)時,它會自動重新加載相關的項目。)

修改pom文件之后右上角會出現maven圖標點擊就會更新pom文件

到此這篇關於IntelliJ IDEA2020.1版本更新pom文件自動導包的方法的文章就介紹到這了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM