1.打開Window>Preferences>Maven>User Interface 勾選”open XML page in the POM editor by default
2. 打開Window>Preferences>General>Editors>File Associations. 點擊 File Types 標簽頁中 add 按鈕,File type 輸入 pom.xml
3.選中 pom.xml,在Associated editors 標簽頁中選中 【Maven POM Editor】,點擊 Default 。