119 lines
4.5 KiB
XML
119 lines
4.5 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
|
<modelVersion>4.0.0</modelVersion>
|
||
|
<artifactId>spring-boot-springdoc-2</artifactId>
|
||
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
<name>spring-boot-springdoc-2</name>
|
||
|
<packaging>jar</packaging>
|
||
|
<description>Project for Springdoc integration</description>
|
||
|
|
||
|
<parent>
|
||
|
<groupId>com.baeldung</groupId>
|
||
|
<artifactId>parent-boot-3</artifactId>
|
||
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
<relativePath>../../parent-boot-3</relativePath>
|
||
|
</parent>
|
||
|
<dependencies>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-validation</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>com.h2database</groupId>
|
||
|
<artifactId>h2</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||
|
<scope>test</scope>
|
||
|
</dependency>
|
||
|
|
||
|
<dependency>
|
||
|
<groupId>org.springdoc</groupId>
|
||
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||
|
<version>${springdoc.version}</version>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.springdoc</groupId>
|
||
|
<artifactId>springdoc-openapi-starter-common</artifactId>
|
||
|
<version>${springdoc.version}</version>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||
|
<artifactId>kotlin-stdlib</artifactId>
|
||
|
</dependency>
|
||
|
|
||
|
</dependencies>
|
||
|
|
||
|
<build>
|
||
|
<plugins>
|
||
|
<plugin>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
|
</plugin>
|
||
|
</plugins>
|
||
|
</build>
|
||
|
|
||
|
<profiles>
|
||
|
<profile>
|
||
|
<id>integration</id>
|
||
|
<build>
|
||
|
<plugins>
|
||
|
<plugin>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
|
<version>${spring-boot.version}</version>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<id>pre-integration-test</id>
|
||
|
<goals>
|
||
|
<goal>start</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
<execution>
|
||
|
<id>post-integration-test</id>
|
||
|
<goals>
|
||
|
<goal>stop</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
</plugin>
|
||
|
<plugin>
|
||
|
<groupId>org.springdoc</groupId>
|
||
|
<artifactId>springdoc-openapi-maven-plugin</artifactId>
|
||
|
<version>${springdoc-openapi-maven-plugin.version}</version>
|
||
|
<executions>
|
||
|
<execution>
|
||
|
<phase>integration-test</phase>
|
||
|
<goals>
|
||
|
<goal>generate</goal>
|
||
|
</goals>
|
||
|
</execution>
|
||
|
</executions>
|
||
|
<configuration>
|
||
|
<apiDocsUrl>http://localhost:8080/api-docs</apiDocsUrl>
|
||
|
<outputFileName>openapi.json</outputFileName>
|
||
|
<outputDir>${project.build.directory}</outputDir>
|
||
|
</configuration>
|
||
|
</plugin>
|
||
|
</plugins>
|
||
|
</build>
|
||
|
</profile>
|
||
|
</profiles>
|
||
|
|
||
|
<properties>
|
||
|
<springdoc.version>2.1.0</springdoc.version>
|
||
|
<springdoc-openapi-maven-plugin.version>1.4</springdoc-openapi-maven-plugin.version>
|
||
|
</properties>
|
||
|
|
||
|
</project>
|