|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | + Copyright 2015-2024 the original author or authors. |
| 5 | +
|
| 6 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + you may not use this file except in compliance with the License. |
| 8 | + You may obtain a copy of the License at |
| 9 | +
|
| 10 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +
|
| 18 | +--> |
| 19 | +<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 20 | + <modelVersion>4.0.0</modelVersion> |
| 21 | + <parent> |
| 22 | + <groupId>org.mybatis.spring.boot</groupId> |
| 23 | + <artifactId>mybatis-spring-boot-samples</artifactId> |
| 24 | + <version>3.0.4-SNAPSHOT</version> |
| 25 | + </parent> |
| 26 | + <artifactId>mybatis-spring-boot-sample-graalvm-xml</artifactId> |
| 27 | + <packaging>jar</packaging> |
| 28 | + <name>mybatis-spring-boot-sample-graalvm-xml</name> |
| 29 | + <properties> |
| 30 | + <module.name>org.mybatis.spring.boot.sample.graalvmxml</module.name> |
| 31 | + </properties> |
| 32 | + <dependencies> |
| 33 | + <dependency> |
| 34 | + <groupId>org.mybatis.spring.boot</groupId> |
| 35 | + <artifactId>mybatis-spring-boot-starter</artifactId> |
| 36 | + </dependency> |
| 37 | + <dependency> |
| 38 | + <groupId>com.h2database</groupId> |
| 39 | + <artifactId>h2</artifactId> |
| 40 | + <scope>runtime</scope> |
| 41 | + </dependency> |
| 42 | + <!-- test dependencies --> |
| 43 | + <dependency> |
| 44 | + <groupId>org.springframework.boot</groupId> |
| 45 | + <artifactId>spring-boot-starter-test</artifactId> |
| 46 | + <scope>test</scope> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>org.mybatis.spring.boot</groupId> |
| 50 | + <artifactId>mybatis-spring-boot-starter-test</artifactId> |
| 51 | + <scope>test</scope> |
| 52 | + </dependency> |
| 53 | + </dependencies> |
| 54 | + <build> |
| 55 | + <plugins> |
| 56 | + <plugin> |
| 57 | + <groupId>org.graalvm.buildtools</groupId> |
| 58 | + <artifactId>native-maven-plugin</artifactId> |
| 59 | + </plugin> |
| 60 | + <plugin> |
| 61 | + <groupId>org.springframework.boot</groupId> |
| 62 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 63 | + <version>${spring-boot.version}</version> |
| 64 | + <executions> |
| 65 | + <execution> |
| 66 | + <goals> |
| 67 | + <goal>repackage</goal> |
| 68 | + </goals> |
| 69 | + </execution> |
| 70 | + </executions> |
| 71 | + </plugin> |
| 72 | + </plugins> |
| 73 | + </build> |
| 74 | + <profiles> |
| 75 | + <profile> |
| 76 | + <id>native</id> |
| 77 | + <build> |
| 78 | + <pluginManagement> |
| 79 | + <plugins> |
| 80 | + <plugin> |
| 81 | + <groupId>org.apache.maven.plugins</groupId> |
| 82 | + <artifactId>maven-jar-plugin</artifactId> |
| 83 | + <configuration> |
| 84 | + <archive> |
| 85 | + <manifestEntries> |
| 86 | + <Spring-Boot-Native-Processed>true</Spring-Boot-Native-Processed> |
| 87 | + </manifestEntries> |
| 88 | + </archive> |
| 89 | + </configuration> |
| 90 | + </plugin> |
| 91 | + <plugin> |
| 92 | + <groupId>org.springframework.boot</groupId> |
| 93 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 94 | + <configuration> |
| 95 | + <image> |
| 96 | + <builder>paketobuildpacks/builder-jammy-tiny:latest</builder> |
| 97 | + <env> |
| 98 | + <BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE> |
| 99 | + </env> |
| 100 | + </image> |
| 101 | + </configuration> |
| 102 | + <executions> |
| 103 | + <execution> |
| 104 | + <id>process-aot</id> |
| 105 | + <goals> |
| 106 | + <goal>process-aot</goal> |
| 107 | + </goals> |
| 108 | + </execution> |
| 109 | + </executions> |
| 110 | + </plugin> |
| 111 | + <plugin> |
| 112 | + <groupId>org.graalvm.buildtools</groupId> |
| 113 | + <artifactId>native-maven-plugin</artifactId> |
| 114 | + <version>${native-build-tools-plugin.version}</version> |
| 115 | + <configuration> |
| 116 | + <classesDirectory>${project.build.outputDirectory}</classesDirectory> |
| 117 | + <requiredVersion>22.3</requiredVersion> |
| 118 | + </configuration> |
| 119 | + <executions> |
| 120 | + <execution> |
| 121 | + <id>add-reachability-metadata</id> |
| 122 | + <goals> |
| 123 | + <goal>add-reachability-metadata</goal> |
| 124 | + </goals> |
| 125 | + </execution> |
| 126 | + </executions> |
| 127 | + </plugin> |
| 128 | + </plugins> |
| 129 | + </pluginManagement> |
| 130 | + </build> |
| 131 | + </profile> |
| 132 | + <profile> |
| 133 | + <id>nativeTest</id> |
| 134 | + <dependencies> |
| 135 | + <dependency> |
| 136 | + <groupId>org.junit.platform</groupId> |
| 137 | + <artifactId>junit-platform-launcher</artifactId> |
| 138 | + <scope>test</scope> |
| 139 | + </dependency> |
| 140 | + </dependencies> |
| 141 | + <build> |
| 142 | + <plugins> |
| 143 | + <plugin> |
| 144 | + <groupId>org.springframework.boot</groupId> |
| 145 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 146 | + <executions> |
| 147 | + <execution> |
| 148 | + <id>process-test-aot</id> |
| 149 | + <goals> |
| 150 | + <goal>process-test-aot</goal> |
| 151 | + </goals> |
| 152 | + </execution> |
| 153 | + </executions> |
| 154 | + </plugin> |
| 155 | + <plugin> |
| 156 | + <groupId>org.graalvm.buildtools</groupId> |
| 157 | + <artifactId>native-maven-plugin</artifactId> |
| 158 | + <version>${native-build-tools-plugin.version}</version> |
| 159 | + <configuration> |
| 160 | + <classesDirectory>${project.build.outputDirectory}</classesDirectory> |
| 161 | + <requiredVersion>22.3</requiredVersion> |
| 162 | + </configuration> |
| 163 | + <executions> |
| 164 | + <execution> |
| 165 | + <id>native-test</id> |
| 166 | + <goals> |
| 167 | + <goal>test</goal> |
| 168 | + </goals> |
| 169 | + </execution> |
| 170 | + </executions> |
| 171 | + </plugin> |
| 172 | + </plugins> |
| 173 | + </build> |
| 174 | + </profile> |
| 175 | + </profiles> |
| 176 | +</project> |
0 commit comments