An open API service indexing awesome lists of open source software.

https://github.com/asbachb/jakartaee-war-archetype

Maven archetype to create Jakarta EE (full, web, core) based projects
https://github.com/asbachb/jakartaee-war-archetype

jakarta-ee jakartaee jakartaee10 jakartaee8 jakartaee9 java

Last synced: about 1 month ago
JSON representation

Maven archetype to create Jakarta EE (full, web, core) based projects

Awesome Lists containing this project

README

          

# Description

This is a maven archetype which generates a Jakarta EE web application skeleton. All variants will generate a `web.xml` and `beans.xml`. The variants `jakartaee` and `jakartaee-web` create a `persistence.xml` additionally.

# Usage

Note: Currently this archetype is not available in maven central. So first thing do is install it:
```bash
mvn install
```

Afterwards you should be able to create a new project:
```bash
mvn archetype:generate -DarchetypeGroupId=it.impl -DarchetypeArtifactId=jakartaee-war-archetype -DarchetypeVersion=1.0.0-SNAPSHOT
```

# Parameters

The archetype can be configured via several system properties:

| Property Name | Default Value | Allowed Values |
| ------------------ | ------------- | ---------------------------------------------- |
| `javaVersion` | `17` | `1.8`, `11`, `17` |
| `jakartaEEVersion` | `10.0.0` | `8.0.0`, `9.0.0`, `9.0.1`, `10.0.0` |
| `jakartaEEVariant` | `jakartaee` | `jakartaee`, `jakartaee-web`, `jakartaee-core` |

# Example Output

`pom.xml`
```xml

4.0.0

it.impl
jakartaee-project
1.0.0-SNAPSHOT
war


UTF-8
17
17




jakarta.platform
jakarta.jakartaee-core-api
10.0.0
provided






org.apache.maven.plugins
maven-surefire-plugin
3.1.0


org.apache.maven.plugins
maven-war-plugin
3.3.2


```

# Notes

* `maven-surefire-plugin` is set in order to be prepared for Junit 5 usage
* `maven-war-plugin` is set as previous versions are not able to compile with Java 17