demo01/pom.xml

250 lines
6.7 KiB
XML
Raw Normal View History

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-11-04 08:27:48 +08:00
<version>3.2.0-RC2</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>
2023-11-02 13:18:54 +08:00
<repositories>
<repository>
<id>spring-snapshots</id>
<url>https://repo.spring.io/snapshot</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>spring-milestones</id>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-snapshots</id>
<url>https://repo.spring.io/snapshot</url>
</pluginRepository>
<pluginRepository>
<id>spring-milestones</id>
<url>https://repo.spring.io/milestone</url>
</pluginRepository>
</pluginRepositories>
2023-08-14 09:19:43 +08:00
<properties>
<java.version>17</java.version>
2023-11-02 13:18:54 +08:00
<spring-cloud.version>2023.0.0-RC1</spring-cloud.version>
2023-08-14 09:19:43 +08:00
</properties>
2023-10-24 19:42:29 +08:00
<dependencyManagement>
<dependencies>
<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-10-29 19:48:16 +08:00
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>
2023-10-29 19:48:16 +08:00
<mainClass>net.risesoft.demo.Demo01Application</mainClass>
<image>
<env>
<BP_NATIVE_IMAGE>false</BP_NATIVE_IMAGE>
<BP_JVM_VERSION>17</BP_JVM_VERSION>
</env>
<name>svn.youshengyun.com:9923/${project.artifactId}-jvm:${project.version}</name>
<publish>true</publish>
</image>
<docker>
<publishRegistry>
<username>publisher</username>
<password>83204585</password>
</publishRegistry>
</docker>
2023-08-14 09:19:43 +08:00
</configuration>
</plugin>
</plugins>
</build>
2023-10-27 13:36:45 +08:00
<profiles>
2023-10-29 19:48:16 +08:00
<profile>
<id>jib</id>
<build>
<plugins>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<skip>false</skip>
<to>
<image>svn.youshengyun.com:9923/${project.artifactId}-jib</image>
<tags>
<tag>${project.version}</tag>
</tags>
<auth>
<username>publisher</username>
<password>83204585</password>
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
2023-10-27 13:36:45 +08:00
<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>
2023-10-27 15:08:13 +08:00
<buildpack>gcr.io/paketo-buildpacks/java-native-image</buildpack>
2023-10-27 13:36:45 +08:00
</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>
2023-10-29 19:48:16 +08:00
<name>svn.youshengyun.com:9923/${project.artifactId}-native:${project.version}</name>
<publish>true</publish>
2023-10-27 13:36:45 +08:00
</image>
2023-10-29 19:48:16 +08:00
<docker>
<publishRegistry>
<username>publisher</username>
<password>83204585</password>
</publishRegistry>
</docker>
2023-10-27 13:36:45 +08:00
</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>
2023-10-27 15:08:13 +08:00
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
2023-10-27 13:36:45 +08:00
<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>