forked from loafle/openapi-generator-original
171 lines
6.7 KiB
XML
171 lines
6.7 KiB
XML
<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/maven-v4_0_0.xsd">
|
|
<parent>
|
|
<groupId>org.sonatype.oss</groupId>
|
|
<artifactId>oss-parent</artifactId>
|
|
<version>5</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-inflector-server</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>openapi-inflector-server</name>
|
|
<version>1.0.0</version>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Unlicense</name>
|
|
<url>https://www.apache.org/licenses/LICENSE-2.0.html</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
</licenses>
|
|
|
|
<build>
|
|
<defaultGoal>install</defaultGoal>
|
|
<directory>target</directory>
|
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
<fork>true</fork>
|
|
<meminitial>128m</meminitial>
|
|
<maxmem>512m</maxmem>
|
|
<compilerArgs>
|
|
<arg>-Xlint:all</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>3.0.0-M1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-maven</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireMavenVersion>
|
|
<version>2.2.0</version>
|
|
</requireMavenVersion>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>1.10</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>
|
|
src/gen/java</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.4</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/logback.xml</exclude>
|
|
</excludes>
|
|
<archive>
|
|
<manifestEntries>
|
|
<mode>development</mode>
|
|
<url>${project.url}</url>
|
|
<implementation-version>${project.version}</implementation-version>
|
|
<package>io.swagger</package>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<version>${jetty-version}</version>
|
|
<configuration>
|
|
<monitoredDirName>.</monitoredDirName>
|
|
<scanTargets>
|
|
<scanTarget>inflector.yaml</scanTarget>
|
|
<scanTarget>src/main/swagger/swagger.yaml</scanTarget>
|
|
</scanTargets>
|
|
<scanIntervalSeconds>1</scanIntervalSeconds>
|
|
<webApp>
|
|
<contextPath>/</contextPath>
|
|
</webApp>
|
|
<httpConnector>
|
|
<port>8080</port>
|
|
<idleTimeout>60000</idleTimeout>
|
|
</httpConnector>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<dependencies>
|
|
<!-- inflector library -->
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-inflector</artifactId>
|
|
<version>${swagger-inflector-version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.annotation</groupId>
|
|
<artifactId>jakarta.annotation-api</artifactId>
|
|
<version>${jakarta-annotation-version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<repositories>
|
|
<repository>
|
|
<id>sonatype-snapshots</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven-plugin-version>1.0.0</maven-plugin-version>
|
|
<swagger-inflector-version>1.0.14</swagger-inflector-version>
|
|
<jetty-version>9.2.9.v20150224</jetty-version>
|
|
<logback-version>1.2.10</logback-version>
|
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
|
<junit-version>4.13.2</junit-version>
|
|
<slf4j-version>1.6.3</slf4j-version>
|
|
</properties>
|
|
</project>
|