JEE 6 Simple (One Project) Archetype
1. Archetype Instalation and Use
Pre-Requisites:
- JDK 6+
- Maven (3.x+)
- Git
Install Steps:
- Download the archetype.
- Install the archetype: mvn clean install
Use Steps:
- Command: mvn archetype:generate -DarchetypeGroupId=org.otojunior.archetype -DarchetypeArtifactId=jee6-app-simple-archetype -DarchetypeVersion= -DgroupId= -DartifactId= -Dversion= -Dpackage= -Dmaven.test.skip=true -B
Parameters:
- archetypeGroupId: MUST BE org.otojunior.archetype
- archetypeArtifactId: MUST BE jee6-app-simple
- archetypeVersion: Archetype version to use to creation.
- groupId: Your company domain in Iava convention. Ex.: com.acme
- artifactId: Your project name. Ex.: sampleproject
- version: Your first project version. Recommendation: 1.0-SNAPSHOT
- package: Default package of your application.
Obs.: In root archetype folder, there is a script to help this creation. Edit the script and put it into another folder. Ex.: the your root projects folder.
2. Logs Framework Configuration
Log Framework: SLF4J (API) and Logback (Implementation). Supports many log appenders (destiny of messages): console, file, databases, etc. For logs in databases (DBAppender), the tables must be created first by scripts in:
The JDBC drivers can be found in: