87 lines
3.5 KiB
XML
87 lines
3.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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>spring-boot-swagger</artifactId>
|
|
<version>0.1.0-SNAPSHOT</version>
|
|
<name>spring-boot-swagger</name>
|
|
<packaging>jar</packaging>
|
|
<description>Module For Spring Boot Swagger</description>
|
|
|
|
<parent>
|
|
<groupId>com.baeldung.spring-boot-modules</groupId>
|
|
<artifactId>spring-boot-modules</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-boot-starter</artifactId>
|
|
<version>${springfox.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.kongchen</groupId>
|
|
<artifactId>swagger-maven-plugin</artifactId>
|
|
<version>${swagger-maven-plugin.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.kongchen</groupId>
|
|
<artifactId>swagger-maven-plugin</artifactId>
|
|
<version>${swagger-maven-plugin.version}</version>
|
|
<configuration>
|
|
<apiSources>
|
|
<apiSource>
|
|
<springmvc>false</springmvc>
|
|
<locations>com.baeldung.swaggerenums.controller</locations>
|
|
<schemes>http,https</schemes>
|
|
<host>baeldung.com</host>
|
|
<basePath>/api</basePath>
|
|
<info>
|
|
<title>Baeldung - Document Enum</title>
|
|
<version>v1</version>
|
|
<description>This is a Baeldung Document Enum Sample Code</description>
|
|
<contact>
|
|
<email>pmurria@baeldung.com</email>
|
|
<name>Parikshit Murria</name>
|
|
</contact>
|
|
<license>
|
|
<url>https://www.apache.org/licenses/LICENSE-2.0.html</url>
|
|
<name>Apache 2.0</name>
|
|
</license>
|
|
</info>
|
|
<swaggerDirectory>${basedir}/target/swagger-ui</swaggerDirectory>
|
|
</apiSource>
|
|
</apiSources>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<springfox.version>3.0.0</springfox.version>
|
|
<swagger-maven-plugin.version>3.1.1</swagger-maven-plugin.version>
|
|
</properties>
|
|
|
|
</project> |