2022-08-16 22:18:29 +02:00
|
|
|
---
|
|
|
|
title: 'Maven Archetypes'
|
|
|
|
weight: 40
|
|
|
|
---
|
|
|
|
|
|
|
|
## Maven Archetypes
|
|
|
|
|
|
|
|
Maven offers archetypes to generate new projects. Strolch offers the following archetypes, to create new projects:
|
2022-08-17 15:36:04 +02:00
|
|
|
|
2022-08-16 22:18:29 +02:00
|
|
|
* [li.strolch.mvn.archetype.main](/development/main-class-app) for Java main class applications
|
2022-08-17 15:36:04 +02:00
|
|
|
* [li.strolch.mvn.archetype.webapp](/development/web-app) for Java Web based applications using REST and Polymer 1.x as
|
|
|
|
the frontend.
|
|
|
|
* [li.strolch.mvn.archetype.plc](/plc/example-set-up) for Strolch PLC projects.
|
2022-08-16 22:18:29 +02:00
|
|
|
|
|
|
|
To use the archetypes, clone the archetypes repository and install it locally:
|
|
|
|
|
|
|
|
```shell
|
2022-08-17 07:28:30 +02:00
|
|
|
git clone https://github.com/strolch-li/strolch-maven-archetypes.git
|
2022-08-16 22:18:29 +02:00
|
|
|
cd strolch-maven-archetypes
|
2022-08-29 09:31:02 +02:00
|
|
|
git checkout 0.1.0
|
2022-08-16 22:18:29 +02:00
|
|
|
mvn clean install
|
|
|
|
```
|
|
|
|
|
2022-08-17 15:36:04 +02:00
|
|
|
Then follow one of the next steps to create the type of application you want.
|