Creating New Java EE 8 Project

In this post I’ll show you how to create a new Java EE 8 project using an archetype created by me. This archetype is on Maven Central and is an archetype to create a WAR project with the following classes and dependencies.

Dependencies:

  • Java EE 8.0
  • JUnit 3.8.1
  • log4j-core 2.11.1

Classes:

  • JobBusiness: An example of Business Object that contains the business logic of Job.
  • Dao: An example of abstract DAO class.
  • JobDao: An example of DAO to Job using JPA.
  • Entity: An example of abstract entity.
  • Job: An example of entity to mapping Job with JPA
  • JobResource: An example of JAX-RS Resource.

To use this archetype run the following maven command:

mvn archetype:generate -DarchetypeGroupId=net.rhuanrocha -DarchetypeArtifactId=javaee8-war-archetype -DarchetypeVersion=1.0.2 -DgroupId=<new project Group Id> -DartifactId=<new project artifact Id>

After running this command, the project will be created on your current folder.

Advertisement

Posted

in

by

Tags:

Comments

2 responses to “Creating New Java EE 8 Project”

  1. Carlos Avatar
    Carlos

    Thanks, man! It was really useful

    Like

  2. Karen W Avatar

    Hi nice readinng your post

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: