Adam Bien's Weblog

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 dates, new workshop: Java EE 7 Workshops: Bootstrap, Effective, Architectures, JavaScript Bootstrap and HTML 5 December, 7th-11th
NEW: Effective Java EE 7 -- Available For Streaming


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