Skip to Main Content
Maven: The Definitive Guide
book

Maven: The Definitive Guide

by Sonatype Company
September 2008
Intermediate to advanced content levelIntermediate to advanced
470 pages
14h 22m
English
O'Reilly Media, Inc.
Content preview from Maven: The Definitive Guide

Using the Form-Based POM Editor

The latest release of the m2eclipse plugin has a form-based POM editor that allows you to edit every part of a project’s pom.xml with an easy-to-use GUI interface. To open the POM editor, click on a project’s pom.xml file. If you have customized the editors for a pom.xml file, and the POM editor is not the default editor, you may need to right-click on the file and choose Open With...Maven POM Editor. The POM editor will then display the Overview tab, as shown in Figure 14-27.

One common complaint about Maven is that it forces a developer to confront large and often overwhelming XML documents in a highly complex multimodule project build. Although the authors of this book believe this is a small price to pay for the flexibility of a tool such as Maven, the graphical POM editor is a tool that makes it possible for people to use Maven without ever having to know about the XML structure behind a Maven POM.

Overview tab of POM editor for idiom-core

Figure 14-27. Overview tab of POM editor for idiom-core

The project shown in Figure 14-27 is a project with an artifactId of idiom-core. You’ll notice that most of the fields in this idiom-core project are blank. There is no groupId or version, and there is no SCM information supplied in the POM editor. This is because idiom-core inherits most of this information from a parent project named idiom. If we open the pom.xml for the parent project in the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Apache Maven Cookbook

Apache Maven Cookbook

Raghuram Bharathan
Mastering Apache Maven 3

Mastering Apache Maven 3

Prabath Siriwardena
Learning Apache Maven

Learning Apache Maven

Kevin Bowersox

Publisher Resources

ISBN: 9780596517335Supplemental ContentErrata Page