<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--指示 POM 的结构和语法版本,通常是一个固定值,例如 4.0.0-->
<modelVersion>4.0.0</modelVersion>
<groupId>com.agile</groupId>
<artifactId>dgs-preview</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<spring-boot-dependencies.version>2.6.11</spring-boot-dependencies.version>
</properties>
<!--使用spring-boot-dependencies,自动对齐依赖包版本,防止部分依赖包版本不对导致无法启动-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot-dependencies.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.agile</groupId>
<artifactId>dgs-preview</artifactId>
<version>20240730.0</version>
</dependency>
</dependencies>
<build>
<!--package打包后,jar包名称-->
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot-dependencies.version}</version>
<configuration>
<!--jar包入口类-->
<mainClass>com.agile.PreviewCenterApplication</mainClass>
<!--package打包后,jar包输出位置-->
<outputDirectory>c:\tmp</outputDirectory>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
maven打包,对应的build配置
于 2024-08-02 11:04:34 首次发布