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
- Host: GitHub
- URL: https://github.com/asbachb/jakartaee-war-archetype
- Owner: asbachb
- License: apache-2.0
- Created: 2023-05-14T18:49:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-18T13:19:20.000Z (about 3 years ago)
- Last Synced: 2025-03-26T19:46:02.913Z (about 1 year ago)
- Topics: jakarta-ee, jakartaee, jakartaee10, jakartaee8, jakartaee9, java
- Language: Groovy
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
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