Skip to content

Commit 4667ec4

Browse files
committed
fix: OpenAPI Spec
1 parent 7b4e38c commit 4667ec4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎source/pom.xml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,40 @@
8585
<goal>build-info</goal>
8686
</goals>
8787
</execution>
88+
<execution>
89+
<id>pre-integration-test</id>
90+
<phase>pre-integration-test</phase>
91+
<goals>
92+
<goal>start</goal>
93+
</goals>
94+
</execution>
95+
<execution>
96+
<id>post-integration-test</id>
97+
<phase>post-integration-test</phase>
98+
<goals>
99+
<goal>stop</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
<plugin>
105+
<groupId>org.springdoc</groupId>
106+
<artifactId>springdoc-openapi-maven-plugin</artifactId>
107+
<version>1.5</version>
108+
<executions>
109+
<execution>
110+
<id>generate-openapi</id>
111+
<phase>integration-test</phase>
112+
<goals>
113+
<goal>generate</goal>
114+
</goals>
115+
</execution>
88116
</executions>
117+
<configuration>
118+
<apiDocsUrl>http://localhost:8080/openapi</apiDocsUrl>
119+
<outputDir>${project.build.directory}/open-api</outputDir>
120+
<outputFileName>openapi.json</outputFileName>
121+
</configuration>
89122
</plugin>
90123
</plugins>
91124
</build>

0 commit comments

Comments
 (0)