https://github.com/luanpotter/xyz-generator
An updated version of maven-archetype-quickstart
https://github.com/luanpotter/xyz-generator
archetype-generator java java11 java8 maven
Last synced: about 2 months ago
JSON representation
An updated version of maven-archetype-quickstart
- Host: GitHub
- URL: https://github.com/luanpotter/xyz-generator
- Owner: luanpotter
- License: mit
- Created: 2017-12-20T11:56:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T13:10:55.000Z (over 7 years ago)
- Last Synced: 2026-01-15T04:43:12.811Z (5 months ago)
- Topics: archetype-generator, java, java11, java8, maven
- Language: Java
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# xyz-generator
An updated version of maven-archetype-quickstart.
For interactive mode, just run:
```bash
mvn archetype:generate -DarchetypeGroupId=xyz.luan.generator -DarchetypeArtifactId=xyz-generator -DarchetypeVersion=0.3.0
```
And fill the information.
If you want batch mode, use this instead, but fill in the gaps:
```bash
mvn archetype:generate -DarchetypeGroupId=xyz.luan.generator -DarchetypeArtifactId=xyz-generator -DarchetypeVersion=0.3.0 -DgroupId= -DartifactId= -Dversion= -DinteractiveMode=false
```
Are you looking for [xyz-gae-generator](https://github.com/luanpotter/xyz-gae-generator)? If you'd like to create a base GAE project, ready to run, test and deploy, check it out.
## Custom Java version
It will by default create a Java 8 project, but now it supports custom java versions, like Java 11.
Just add `-Djava-version=11` to your command:
```bash
mvn archetype:generate -DarchetypeGroupId=xyz.luan.generator -DarchetypeArtifactId=xyz-generator -DarchetypeVersion=0.3.0 -Djava-version=11
```
## Why is it better than quickstart?
* It adds UTF-8 encoding and Java 8 support to your pom (zero warnings first build)
* It adds better test libraries (updated JUnit plus AssertJ)
* It adds a gitignore (hurray!)