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 workshops: MicroProfile with Quarkus and Micro Frontends with Web Components at MUC airport the podcast:

Stay in touch:


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