| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <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> |
| |
| <parent> |
| <groupId>org.apache.camel.springboot.example</groupId> |
| <artifactId>examples</artifactId> |
| <version>4.10.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>camel-example-spring-boot-openapi-contract-first</artifactId> |
| <name>Camel SB Examples :: OpenAPI Contract First</name> |
| <description>Contract First OpenAPI example</description> |
| |
| <properties> |
| <category>Rest</category> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| </properties> |
| |
| <dependencyManagement> |
| <dependencies> |
| <!-- Camel BOM --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-spring-boot-bom</artifactId> |
| <version>${camel-version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| <!-- Spring Boot BOM --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-dependencies</artifactId> |
| <version>${spring-boot-version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| |
| <!-- Spring Boot --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-actuator</artifactId> |
| </dependency> |
| |
| <!-- Camel --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-spring-boot-starter</artifactId> |
| </dependency> |
| <!-- openapi support --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-rest-openapi-starter</artifactId> |
| </dependency> |
| <!-- json support --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-jackson-starter</artifactId> |
| </dependency> |
| <!-- camel to use spring http server --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-platform-http-starter</artifactId> |
| </dependency> |
| <!-- include camel developer console --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-console-starter</artifactId> |
| </dependency> |
| <!-- include JMX that allows additional information in camel developer console --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-management-starter</artifactId> |
| </dependency> |
| <!-- Camel CLI --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-cli-connector-starter</artifactId> |
| </dependency> |
| |
| <!-- test --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-spring-junit5</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>io.swagger.codegen.v3</groupId> |
| <artifactId>swagger-codegen-maven-plugin</artifactId> |
| <version>3.0.52</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <!-- we only want to generate the model classes for spring boot --> |
| <language>spring</language> |
| <library>spring-boot3</library> |
| <inputSpec>${project.basedir}/src/main/resources/petstore.json</inputSpec> |
| <modelPackage>sample.petstore.model</modelPackage> |
| <generateApis>false</generateApis> |
| <generateApiDocumentation>false</generateApiDocumentation> |
| <generateModelDocumentation>false</generateModelDocumentation> |
| <generateApiTests>false</generateApiTests> |
| <generateModelTests>false</generateModelTests> |
| <generateSupportingFiles>false</generateSupportingFiles> |
| <generateModels>true</generateModels> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- include the model classes to source folder --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>3.5.0</version> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>target/swagger/src/main/java</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- spring boot plugin --> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <version>${spring-boot-version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>repackage</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |