summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/pom.xml')
-rw-r--r--dozentenmodulserver/pom.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/dozentenmodulserver/pom.xml b/dozentenmodulserver/pom.xml
index dae50672..1dd968fd 100644
--- a/dozentenmodulserver/pom.xml
+++ b/dozentenmodulserver/pom.xml
@@ -110,6 +110,38 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>api:generate</id>
+ <build>
+ <defaultGoal>generate-sources</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.openapitools</groupId>
+ <artifactId>openapi-generator-maven-plugin</artifactId>
+ <version>5.3.1</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${basedir}/src/main/openapi/bwlp-server-openapi.yaml</inputSpec>
+ <generatorName>spring</generatorName>
+ <output>${basedir}/api</output>
+ <groupId>org.openslx.bwlp.sat.api</groupId>
+ <artifactId>dozmod-server-api</artifactId>
+ <apiPackage>org.openslx.bwlp.sat.api.handler</apiPackage>
+ <modelPackage>org.openslx.bwlp.sat.api.model</modelPackage>
+ <invokerPackage>org.openslx.bwlp.sat.api.handler</invokerPackage>
+ <generateModels>true</generateModels>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<build>
@@ -208,6 +240,12 @@
<dependencies>
<dependency>
+ <groupId>org.openslx.bwlp.sat.api</groupId>
+ <artifactId>dozmod-server-api</artifactId>
+ <version>1.0.0</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>[8.0,9.0)</version>