2019-11-06 22:12:51 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2019-12-05 09:56:52 -05:00
|
|
|
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">
|
2019-11-06 22:12:51 -05:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>spring-boot-springdoc</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<name>spring-boot-springdoc</name>
|
|
|
|
<packaging>jar</packaging>
|
2019-12-05 09:56:52 -05:00
|
|
|
<description>Project for Springdoc integration</description>
|
2019-11-06 22:12:51 -05:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
2019-12-05 09:56:52 -05:00
|
|
|
<artifactId>parent-boot-2</artifactId>
|
2019-11-06 22:12:51 -05:00
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<relativePath>../parent-boot-2</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<properties>
|
2020-01-10 08:35:32 -05:00
|
|
|
<!-- <spring-boot.version>2.1.9.RELEASE</spring-boot.version>-->
|
2019-11-06 22:12:51 -05:00
|
|
|
<java.version>1.8</java.version>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- SpringDoc -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-core</artifactId>
|
2020-01-10 08:35:32 -05:00
|
|
|
<version>1.1.49</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>io.github.classgraph</groupId>
|
|
|
|
<artifactId>classgraph</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2019-11-06 22:12:51 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-ui</artifactId>
|
2020-01-10 08:35:32 -05:00
|
|
|
<version>1.1.49</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.github.classgraph</groupId>
|
|
|
|
<artifactId>classgraph</artifactId>
|
|
|
|
<version>4.8.44</version>
|
2019-11-06 22:12:51 -05:00
|
|
|
</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>
|
2020-01-10 08:35:32 -05:00
|
|
|
<version>2.2.2.RELEASE</version>
|
2019-11-06 22:12:51 -05:00
|
|
|
<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>0.2</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>
|
|
|
|
|
|
|
|
</project>
|