Skip to main content
This revision made August 14, 2012 22:45, by ievans
« earlier revision revert to this later revision »

Java EE Tutorial Maven Artifacts

For Java EE 7, the Java EE documentation team intends to migrate our examples to Maven, away from the Ant-based Java BluePrints and native NetBeans build files we've used since J2EE 1.4. One of the main advantages to using Maven is that our examples will be able to be run in any Maven-aware IDE as well as using the command line mvn tool.

This document describes the Maven artifacts we intend to publish to the Maven repository.

Common Maven project settings

POM element Value Description
GroupId org.glassfish.javaeetutorial All artifacts will be organized under this GroupId.
ArtifactId javaeetutorial-technology-artifact name All artifact names will begin with javaeetutorial, then the technology with which the artifact is associated. For example, the EJB example application cart would have an ArtifactId of javaeetutorial-ejb-cart. Tutorial-wide artifacts will use javaeetutorial-common-artifact name.
Version Java EE version-major release-minor release All artifacts for Java EE 7 should begin with with 7.0. The major and minor releases are independent of the Java EE version, and are specific to the artifact. Start both the major and minor release at 0.
Type packaging format of final artifact One of jar, zip, war, or ear.


To simplify development and provide a standardized look-and-feel for our example applications, we'll provide archetypes for the different kinds of example applications described in the Tutorial.

Web application archetype

The web application archetype will provide the basic structure of a Java EE 7 web application. This archetype uses the javaeetutorial-common-web artifact for common CSS and other resources shared with all Java EE 7 Tutorial example web applications.

Case study archetype

The case study archetype will provide the basic structure of a case study example application.


Common bundles

Please Confirm