mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
120 lines
4.7 KiB
XML
120 lines
4.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>io.swagger</groupId>
|
|
<artifactId>swagger-inflector-server</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>swagger-inflector-server</name>
|
|
<version>1.0.0</version>
|
|
<prerequisites>
|
|
<maven>2.2.0</maven>
|
|
</prerequisites>
|
|
|
|
<build>
|
|
<defaultGoal>install</defaultGoal>
|
|
<directory>target</directory>
|
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
<plugins>
|
|
<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>
|
|
</dependencies>
|
|
<repositories>
|
|
<repository>
|
|
<id>sonatype-snapshots</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
<properties>
|
|
<maven-plugin-version>1.0.0</maven-plugin-version>
|
|
<swagger-inflector-version>1.0.4</swagger-inflector-version>
|
|
<jetty-version>9.2.9.v20150224</jetty-version>
|
|
<logback-version>1.0.1</logback-version>
|
|
<junit-version>4.8.2</junit-version>
|
|
<slf4j-version>1.6.3</slf4j-version>
|
|
</properties>
|
|
</project> |