| <?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.4.0</version> |
| </parent> |
| |
| <artifactId>camel-example-spring-boot-aot-basic</artifactId> |
| <name>Camel SB Examples :: AOT Basic</name> |
| <description>Example on how to leverage Spring Boot AOT in Camel Spring Boot</description> |
| |
| <properties> |
| <category>AOT</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>${project.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <!-- Camel --> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-spring-boot-starter</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-yaml-dsl-starter</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel.springboot</groupId> |
| <artifactId>camel-xml-io-dsl-starter</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.graalvm.buildtools</groupId> |
| <artifactId>native-maven-plugin</artifactId> |
| </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> |
| <profiles> |
| <profile> |
| <id>native</id> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestEntries> |
| <Spring-Boot-Native-Processed>true</Spring-Boot-Native-Processed> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <configuration> |
| <image> |
| <builder>paketobuildpacks/builder:tiny</builder> |
| <env> |
| <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE> |
| </env> |
| </image> |
| </configuration> |
| <executions> |
| <execution> |
| <id>process-aot</id> |
| <goals> |
| <goal>process-aot</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.graalvm.buildtools</groupId> |
| <artifactId>native-maven-plugin</artifactId> |
| <configuration> |
| <classesDirectory>${project.build.outputDirectory}</classesDirectory> |
| <metadataRepository> |
| <enabled>true</enabled> |
| </metadataRepository> |
| <requiredVersion>22.3</requiredVersion> |
| </configuration> |
| <executions> |
| <execution> |
| <id>add-reachability-metadata</id> |
| <goals> |
| <goal>add-reachability-metadata</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| </profile> |
| </profiles> |
| </project> |