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

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

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!)