Configuring Maven 2 POM Editor to open pom.xml files in source mode

Viewed 29696

I use the Maven 2 POM Editor mainly for editing POM XML files directly. Is there a way to make the editor always open files in the "Source" tab?

5 Answers

In the Eclipse preferences for the Maven plugin, there is a check box for Open XML page in the POM editor by default. Its exact location varies by plugin version.

Juno/Kepler/Luna/Mars (4.x)

In these versions of Eclipse:

  1. Click Window → Preferences
  2. Expand Maven
  3. Click User Interface
  4. Check Open XML page in the POM editor by default
  5. Click Apply and Close

POMs will open in source view by default.

Helios/Indigo (3.x)

In these versions of Eclipse:

Maven > POM Editor

Checking the check box "Open XML page in the POM editor by default" will open the POM editor but this will not automatically select the second tab - "Source". You still have to click at the bottom on the "Source" tab. By default, the POM editor opens the first tab - "Design". The POM editor will remember the last tab you clicked, so if you clicked on Source the second time you open it it will show the Source tab.

Eclipse Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200 , ubuntu 16.04

Related