|
40 | 40 | <maven.compiler.source>11</maven.compiler.source> |
41 | 41 | <maven.compiler.target>11</maven.compiler.target> |
42 | 42 | <project.build.sourceEncoding>utf-8</project.build.sourceEncoding> |
43 | | - <native-image-plugin.version>21.2.0</native-image-plugin.version> |
| 43 | + <graalvm.version>22.1</graalvm.version> |
| 44 | + <graalvm-buildtools.version>0.9.17</graalvm-buildtools.version> |
44 | 45 | <picocli-codegen.version>4.6.3</picocli-codegen.version> |
45 | 46 | <os-maven-plugin.version>1.7.0</os-maven-plugin.version> |
46 | 47 | <maven-assembly-plugin.version>3.4.2</maven-assembly-plugin.version> |
| 48 | + <maven-compiler.version>3.8.1</maven-compiler.version> |
47 | 49 | <appassembler-maven-plugin.version>2.1.0</appassembler-maven-plugin.version> |
48 | 50 | </properties> |
49 | 51 |
|
|
83 | 85 | <groupId>org.apache.maven.plugins</groupId> |
84 | 86 | <artifactId>maven-compiler-plugin</artifactId> |
85 | 87 | <!-- annotationProcessorPaths requires maven-compiler-plugin version 3.5 or higher --> |
86 | | - <version>3.8.1</version> |
| 88 | + <version>${maven-compiler.version}</version> |
87 | 89 | <configuration> |
88 | 90 | <annotationProcessorPaths> |
89 | 91 | <path> |
|
197 | 199 | <build> |
198 | 200 | <plugins> |
199 | 201 | <plugin> |
200 | | - <groupId>org.graalvm.nativeimage</groupId> |
201 | | - <artifactId>native-image-maven-plugin</artifactId> |
202 | | - <version>${native-image-plugin.version}</version> |
203 | | - <configuration> |
204 | | - <imageName>${appName}</imageName> |
205 | | - <mainClass>${mainClass}</mainClass> |
206 | | - <buildArgs> |
207 | | - --no-fallback |
208 | | - -Dfile.encoding=UTF-8 |
209 | | - -H:-CheckToolchain |
210 | | - -H:+ReportExceptionStackTraces |
211 | | - </buildArgs> |
212 | | - </configuration> |
| 202 | + <groupId>org.graalvm.buildtools</groupId> |
| 203 | + <artifactId>native-maven-plugin</artifactId> |
| 204 | + <version>${graalvm-buildtools.version}</version> |
| 205 | + <extensions>true</extensions> |
213 | 206 | <executions> |
214 | 207 | <execution> |
| 208 | + <id>build-native</id> |
215 | 209 | <goals> |
216 | | - <goal>native-image</goal> |
| 210 | + <goal>compile-no-fork</goal> |
217 | 211 | </goals> |
218 | 212 | <phase>package</phase> |
219 | 213 | </execution> |
220 | 214 | </executions> |
| 215 | + <configuration> |
| 216 | + <skip>false</skip> |
| 217 | + <imageName>${appName}</imageName> |
| 218 | + <requiredVersion>${graalvm.version}</requiredVersion> |
| 219 | + <mainClass>${mainClass}</mainClass> |
| 220 | + <buildArgs> |
| 221 | + <arg>--no-fallback</arg> |
| 222 | + <arg>-Dfile.encoding=UTF-8</arg> |
| 223 | + <arg>-H:-CheckToolchain</arg> |
| 224 | + <arg>-H:+ReportExceptionStackTraces</arg> |
| 225 | + </buildArgs> |
| 226 | + </configuration> |
221 | 227 | </plugin> |
222 | 228 | <plugin> |
223 | 229 | <groupId>org.codehaus.mojo</groupId> |
|
0 commit comments