2023-08-14 09:19:43 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2023-10-17 19:48:34 +08:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2023-10-08 19:49:56 +08:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2023-08-14 09:19:43 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
2023-10-20 11:44:43 +08:00
|
|
|
<version>3.1.5</version>
|
2023-10-17 19:48:34 +08:00
|
|
|
<relativePath /> <!-- lookup parent from repository -->
|
2023-08-14 09:19:43 +08:00
|
|
|
</parent>
|
|
|
|
<groupId>net.risesoft</groupId>
|
|
|
|
<artifactId>demo01</artifactId>
|
|
|
|
<version>1.0</version>
|
|
|
|
<name>demo01</name>
|
|
|
|
<description>Demo project for Spring Boot</description>
|
|
|
|
<properties>
|
|
|
|
<java.version>17</java.version>
|
2023-10-24 19:42:29 +08:00
|
|
|
<spring-cloud.version>2022.0.4</spring-cloud.version>
|
2023-08-14 09:19:43 +08:00
|
|
|
</properties>
|
2023-10-24 19:42:29 +08:00
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.ecwid.consul</groupId>
|
|
|
|
<artifactId>consul-api</artifactId>
|
|
|
|
<version>1.4.5</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
|
|
<version>${spring-cloud.version}</version>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>import</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
|
|
|
|
2023-08-14 09:19:43 +08:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
|
</dependency>
|
2023-10-17 19:48:34 +08:00
|
|
|
|
2023-08-14 09:19:43 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
2023-10-17 19:48:34 +08:00
|
|
|
|
|
|
|
|
2023-08-14 09:19:43 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2023-10-17 19:48:34 +08:00
|
|
|
|
2023-08-14 09:19:43 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-docker-compose</artifactId>
|
|
|
|
</dependency>
|
2023-10-17 19:48:34 +08:00
|
|
|
|
2023-10-08 19:49:56 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
</dependency>
|
2023-10-17 19:48:34 +08:00
|
|
|
|
2023-10-08 19:49:56 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.micrometer</groupId>
|
|
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
2023-10-17 19:48:34 +08:00
|
|
|
|
2023-10-24 19:42:29 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-consul-discovery</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
2023-08-14 09:19:43 +08:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2023-10-17 19:48:34 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2023-08-14 09:19:43 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2023-10-27 13:36:45 +08:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>native</id>
|
|
|
|
<build>
|
|
|
|
<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</builder>
|
|
|
|
<buildpacks>
|
|
|
|
<buildpack>gcr.io/paketo-buildpacks/graalvm</buildpack>
|
|
|
|
<buildpack>
|
|
|
|
gcr.io/paketo-buildpacks/java-native-image</buildpack>
|
|
|
|
</buildpacks>
|
|
|
|
<env>
|
|
|
|
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
|
|
|
|
<BP_JVM_VERSION>17.0.9</BP_JVM_VERSION>
|
|
|
|
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>--enable-preview</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
|
|
|
|
</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>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
2023-08-14 09:19:43 +08:00
|
|
|
</project>
|