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 workshop: Building HTML 5 Applications Without Frameworks, Full week in December 2016: from Java EE 7 Bootstrap, Effective, Architectures over Testing to Microservices
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices 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