Essential Maven POM For JavaEE 7

The essential POM for JavaEE 7 is 30 lines of xml:

<project xmlns="" xmlns:xsi=""
        <defaultGoal>clean install</defaultGoal>

The src/main/webapp/WEB-INF folder comprises a minimalistic web.xml, so there is no need for WAR-plugin configuration:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns=""

The pom.xml was also checked-in into:

See you at Java EE Workshops at MUC Airport (Maven is discussed at second day, in the "Effective JavaEE" workshop)!

NEW: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: and newsletter:

A book about rethinking Java EE Patterns


To save even more line, you may skip the compiler definition (since it is implicit) and just define properties 'maven.compiler.source' and ''

Posted by banter on June 03, 2015 at 11:09 AM CEST #

The xsi:schemaLocation attribute in your web.xml is wrong. It should be ""

Posted by on September 29, 2015 at 09:32 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments