diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..3a1a125
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,28 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 21
+ uses: actions/setup-java@v2
+ with:
+ java-version: '21'
+ distribution: 'adopt'
+ - name: Build with Maven
+ run: mvn -B package --fail-at-end
+ - name: Publish Test Report
+ if: ${{ always() }}
+ uses: scacap/action-surefire-report@v1
diff --git a/README.md b/README.md
index 33c976f..097f1e1 100644
--- a/README.md
+++ b/README.md
@@ -71,7 +71,7 @@ Add to your `pom.xml`:
### [Petstore model](https://github.com/jhannes/openapi-generator-java-lombok/tree/main/snapshotTests/snapshot/petstore/src/main/java/io/github/jhannes/openapi/petstore/model)
-### [Polymorphism](https://github.com/jhannes/openapi-generator-java-lombok/blob/main/snapshotTests/snapshot/input/poly.yaml)
+### [Polymorphism](https://github.com/jhannes/openapi-generator-java-lombok/blob/main/snapshotTests/input/poly.yaml)
```yaml
components:
diff --git a/pom.xml b/pom.xml
index a781e22..6602182 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- openapi-generator-lombok
+ openapi-generator-java-lombok
openapi-generator-lombok
io.github.jhannes.openapi