mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 21:37:56 +08:00
[fix]
This commit is contained in:
parent
3740a4f4ea
commit
9edb6f3d4d
115
pom.xml
115
pom.xml
@ -175,55 +175,96 @@
|
|||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>native</id>
|
<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-jammy-tiny:latest</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>
|
||||||
|
<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>
|
||||||
|
<profile>
|
||||||
|
<id>nativeTest</id>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.platform</groupId>
|
||||||
|
<artifactId>junit-platform-launcher</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>process-test-aot</id>
|
||||||
|
<goals>
|
||||||
|
<goal>process-test-aot</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.graalvm.buildtools</groupId>
|
<groupId>org.graalvm.buildtools</groupId>
|
||||||
<artifactId>native-maven-plugin</artifactId>
|
<artifactId>native-maven-plugin</artifactId>
|
||||||
<version>0.9.28</version>
|
|
||||||
<!-- 使用graalvm提供的可达性元数据,很多第三方库就直接可以构建成可执行文件了 -->
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- for agent -->
|
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
|
||||||
<agent>
|
<requiredVersion>22.3</requiredVersion>
|
||||||
<defaultMode>Standard</defaultMode>
|
|
||||||
<options>
|
|
||||||
<builtinCallerFilter>true</builtinCallerFilter>
|
|
||||||
<builtinHeuristicFilter>true</builtinHeuristicFilter>
|
|
||||||
<enableExperimentalPredefinedClasses>true
|
|
||||||
</enableExperimentalPredefinedClasses>
|
|
||||||
<enableExperimentalUnsafeAllocationTracing>true
|
|
||||||
</enableExperimentalUnsafeAllocationTracing>
|
|
||||||
<trackReflectionMetadata>true</trackReflectionMetadata>
|
|
||||||
</options>
|
|
||||||
<metadataCopy>
|
|
||||||
<merge>true</merge>
|
|
||||||
</metadataCopy>
|
|
||||||
</agent>
|
|
||||||
<!-- for metadata repository -->
|
|
||||||
<metadataRepository>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</metadataRepository>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>add-reachability-metadata</id>
|
<id>native-test</id>
|
||||||
<goals>
|
|
||||||
<goal>add-reachability-metadata</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>test-native</id>
|
|
||||||
<goals>
|
<goals>
|
||||||
<goal>test</goal>
|
<goal>test</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<phase>test</phase>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>build-native</id>
|
|
||||||
<goals>
|
|
||||||
<goal>compile-no-fork</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>package</phase>
|
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -32,29 +32,6 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- <plugin>-->
|
|
||||||
<!-- <groupId>org.graalvm.buildtools</groupId>-->
|
|
||||||
<!-- <artifactId>native-maven-plugin</artifactId>-->
|
|
||||||
<!-- <version>0.9.23</version>-->
|
|
||||||
<!-- <configuration>-->
|
|
||||||
<!-- <!– imageName用于设置生成的二进制文件名称 –>-->
|
|
||||||
<!-- <imageName>${project.artifactId}</imageName>-->
|
|
||||||
<!-- <!– mainClass用于指定main方法类路径 –>-->
|
|
||||||
<!-- <mainClass>org.framework.lazy.cloud.network.heartbeat.server.LazyCloudHeartbeatServerStart</mainClass>-->
|
|
||||||
<!-- <buildArgs>-->
|
|
||||||
<!-- --no-fallback-->
|
|
||||||
<!-- </buildArgs>-->
|
|
||||||
<!-- </configuration>-->
|
|
||||||
<!-- <executions>-->
|
|
||||||
<!-- <execution>-->
|
|
||||||
<!-- <id>build-native</id>-->
|
|
||||||
<!-- <goals>-->
|
|
||||||
<!-- <goal>compile-no-fork</goal>-->
|
|
||||||
<!-- </goals>-->
|
|
||||||
<!-- <phase>package</phase>-->
|
|
||||||
<!-- </execution>-->
|
|
||||||
<!-- </executions>-->
|
|
||||||
<!-- </plugin>-->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user