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 java.net Maven repository.
|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.
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.
The case study archetype will provide the basic structure of a case study example application.