Eclipse code assist in Maven pom.xml

By default, code assist in editing a pom.xml is NOT supported in Eclipse IDE. It make Maven project hard to maintain, and who will remember who all those tags?

Solution

You need a pom.xml Maven editor, which is available in m2eclipse plugin. In Eclipse, menu, select “Help” -> “Install New Software”, and put following m2eclipse plugin url.

http://download.eclipse.org/technology/m2e/releases

Restart Eclipse, code assist is available in your pom.xml.

Demo

In pom.xml, click “CTRL + Space“, it will prompts a list of available tags.

Figure : pom.xml

Maven code assist in Eclipse
Note
The Maven pom editor is just one of the m2eclipse features, make sure check the m2eclipse website for more detail.

References

  1. Eclipse download link for m2eclipse
  2. m2eclipse official website
  3. Maven POM editor

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Robson Duarte Recent comment authors
newest oldest most voted
Robson Duarte
Guest
Robson Duarte

Hi, the m2e is available in eclipse marketpalce > http://goo.gl/GsQpW6