Repository for custom Maven Archetypes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
javaee-8-archetype
javaee-8-jsf-archetype
README.md

README.md

Custom Maven Archetypes

Repository for custom Maven Archetypes

Java EE 8 with Microprofile 2.0.1

Maven Central

With this Maven archetype you can bootstrap a simple Java EE 8 application in seconds. This archetype contains the following files/dependencies:

  • Java EE 8 API dependency
  • Microprofile 2.0.1 dependency
  • Mockito and JUnit dependencies for efficient testing
  • beans.xml with bean-discovery-mode="all"
  • persistence.xml configured for JTA persistence unit
  • microprofile-config.properties for configuration
  • JAX-RS configuration class
  • Sample JAX-RS REST endpoint (/resources/sample)
  • Dockerfile for Payara 5.183 deployment
  • Build and deploy script as .sh and .bat
mvn archetype:generate -DarchetypeGroupId=de.rieckpil.archetypes \
    -DarchetypeArtifactId=javaee8 \
    -DarchetypeVersion=1.0.1 \
    -DgroupId=<your project Group Id> \
    -DartifactId=<your project artifact Id>

Bootstrapping and deploying a new application under Windows (Docker daemon needs to run):

mvn archetype:generate -DarchetypeGroupId=de.rieckpil.archetypes -DarchetypeArtifactId=javaee8 -DarchetypeVersion=1.0.1 -DgroupId=de.rieckpil.blog -DartifactId=javaee-8-microservice -DinteractiveMode=false
cd javaee-8-microservice
buildAndRun.bat

Bootstrapping and deploying a new application under Linux/Mac (Docker daemon needs to run):

mvn archetype:generate -DarchetypeGroupId=de.rieckpil.archetypes -DarchetypeArtifactId=javaee8 -DarchetypeVersion=1.0.1 -DgroupId=de.rieckpil.blog -DartifactId=javaee-8-microservice -DinteractiveMode=false
cd javaee-8-microservice
chmod +x buildAndRun.sh
./buildAndRun.sh

After Payara successfully started visit http://localhost:8080/resources/sample