demo01/pom.xml

288 lines
7.4 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>
2023-12-18 06:41:44 +08:00
<groupId>net.risesoft</groupId>
<artifactId>demo01</artifactId>
2024-02-02 07:31:45 +08:00
<packaging>war</packaging>
2023-12-18 06:41:44 +08:00
<version>1.0</version>
<name>demo01</name>
2023-08-14 09:19:43 +08:00
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
2024-01-23 19:05:58 +08:00
<version>3.2.2</version>
2023-10-17 19:48:34 +08:00
<relativePath /> <!-- lookup parent from repository -->
2023-08-14 09:19:43 +08:00
</parent>
2023-12-18 06:41:44 +08:00
2023-11-02 13:18:54 +08:00
<repositories>
2023-12-18 06:41:44 +08:00
<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-11-02 13:18:54 +08:00
2024-01-23 19:05:58 +08:00
<distributionManagement>
<repository>
<id>gitea</id>
<url>https://svn.youshengyun.com:3000/api/packages/risesoft/maven</url>
</repository>
<snapshotRepository>
<id>gitea</id>
<url>https://svn.youshengyun.com:3000/api/packages/risesoft/maven</url>
</snapshotRepository>
</distributionManagement>
2023-08-14 09:19:43 +08:00
<properties>
2023-11-20 14:08:30 +08:00
<java.version>21</java.version>
2023-12-18 06:41:44 +08:00
<spring-cloud.version>2023.0.0</spring-cloud.version>
2023-08-14 09:19:43 +08:00
</properties>
2023-10-24 19:42:29 +08:00
2023-12-18 06:41:44 +08:00
<dependencyManagement>
2023-10-24 19:42:29 +08:00
<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>
2023-12-18 06:41:44 +08:00
</dependencyManagement>
2023-10-24 19:42:29 +08:00
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>
2024-02-02 07:31:45 +08:00
<exclusions>
2023-12-18 06:41:44 +08:00
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
2024-02-02 07:31:45 +08:00
</exclusions>
2023-08-14 09:19:43 +08:00
</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-12-18 06:41:44 +08:00
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<!--<dependency>
<groupId>jakarta.servlet.jsp.jstl</groupId>
<artifactId>jakarta.servlet.jsp.jstl-api</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>
2023-11-19 20:14:23 +08:00
<BP_JVM_VERSION>21</BP_JVM_VERSION>
2023-10-29 19:48:16 +08:00
</env>
2024-02-02 07:31:45 +08:00
<name>svn.youshengyun.com:9923/${project.artifactId}-jvm:${project.version}</name>
2023-10-29 19:48:16 +08:00
<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>
2023-11-27 09:54:52 +08:00
<from>
<image>eclipse-temurin:21-jre</image>
</from>
2023-10-29 19:48:16 +08:00
<to>
2024-01-23 19:05:58 +08:00
<image>
svn.youshengyun.com:9923/${project.artifactId}-jib</image>
2023-10-29 19:48:16 +08:00
<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>
2024-01-23 19:05:58 +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>
2023-11-19 20:14:23 +08:00
<BP_JVM_VERSION>21</BP_JVM_VERSION>
2024-01-23 19:05:58 +08:00
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
--enable-preview</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
2023-10-27 13:36:45 +08:00
</env>
2024-01-23 19:05:58 +08:00
<name>
svn.youshengyun.com:9923/${project.artifactId}-native:${project.version}</name>
2023-10-29 19:48:16 +08:00
<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>