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 。