mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-14 13:40:55 +00:00
199 lines
5.8 KiB
XML
199 lines
5.8 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>sample-project</artifactId>
|
|
<packaging>jar</packaging>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<name>sample-project</name>
|
|
<url>https://maven.apache.org</url>
|
|
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- activate the plugin -->
|
|
<plugin>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>openapi-generator-maven-plugin</artifactId>
|
|
<!-- RELEASE_VERSION -->
|
|
<version>5.3.1-SNAPSHOT</version>
|
|
<!-- /RELEASE_VERSION -->
|
|
<executions>
|
|
<execution>
|
|
<id>camel-server</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- specify the swagger yaml -->
|
|
<inputSpec>${project.basedir}/swagger.yaml</inputSpec>
|
|
|
|
<!-- target to generate java client code -->
|
|
<generatorName>camel</generatorName>
|
|
|
|
<!-- hint: if you want to generate java server code, e.g. based on Spring Boot,
|
|
you can use the following target: <generatorName>spring</generatorName> -->
|
|
|
|
<!-- pass any necessary config options -->
|
|
<configOptions>
|
|
<camelRestBindingMode>auto</camelRestBindingMode>
|
|
<useBeanValidation>true</useBeanValidation>
|
|
<performBeanValidation>true</performBeanValidation>
|
|
<camelDataformatProperties>json.out.disableFeatures=WRITE_DATES_AS_TIMESTAMPS</camelDataformatProperties>
|
|
<withXml>true</withXml>
|
|
<jackson>true</jackson>
|
|
<camelUseDefaultValidationErrorProcessor>true</camelUseDefaultValidationErrorProcessor>
|
|
<!--
|
|
Define bean validation error processor
|
|
<camelUseDefaultValidationErrorProcessor>false</camelUseDefaultValidationErrorProcessor>
|
|
<camelValidationErrorProcessor>errorProcessorBeanName</camelValidationErrorProcessor>
|
|
-->
|
|
<camelRestClientRequestValidation>true</camelRestClientRequestValidation>
|
|
<camelSecurityDefinitions>true</camelSecurityDefinitions>
|
|
</configOptions>
|
|
|
|
</configuration>
|
|
</execution>
|
|
|
|
</executions>
|
|
</plugin>
|
|
<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>
|
|
<proc>none</proc>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
<pluginManagement>
|
|
</pluginManagement>
|
|
</build>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>sonatype-snapshots</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.camel</groupId>
|
|
<artifactId>camel-bom</artifactId>
|
|
<version>3.13.0</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.camel.springboot</groupId>
|
|
<artifactId>camel-spring-boot-bom</artifactId>
|
|
<version>3.13.0</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<version>2.6.1</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.camel.springboot</groupId>
|
|
<artifactId>camel-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.camel.springboot</groupId>
|
|
<artifactId>camel-servlet-starter</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>jackson-databind-nullable</artifactId>
|
|
<version>0.2.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>1.6.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>2.1.11</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
<version>2.13.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-jdk8</artifactId>
|
|
<version>2.13.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.camel</groupId>
|
|
<artifactId>camel-jackson</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.camel</groupId>
|
|
<artifactId>camel-jacksonxml</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.camel</groupId>
|
|
<artifactId>camel-jaxb</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.camel</groupId>
|
|
<artifactId>camel-direct</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.camel</groupId>
|
|
<artifactId>camel-bean-validator</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Test dependencies -->
|
|
<dependency>
|
|
<groupId>com.mashape.unirest</groupId>
|
|
<artifactId>unirest-java</artifactId>
|
|
<version>1.4.9</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.camel</groupId>
|
|
<artifactId>camel-test-spring-junit5</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
<swagger-annotations-version>1.5.8</swagger-annotations-version>
|
|
|
|
<spring-boot-starter-web.version>2.2.1.RELEASE</spring-boot-starter-web.version>
|
|
<springfox-version>2.8.0</springfox-version>
|
|
</properties>
|
|
</project>
|