修改项目的打包脚本

pull/2/head
YunaiV 2021-02-20 09:54:41 +08:00
parent d29e9808e3
commit 5dea2b884c
1 changed files with 30 additions and 35 deletions

65
pom.xml
View File

@ -217,42 +217,37 @@
<build> <build>
<!-- 设置构建的 jar 包名 --> <!-- 设置构建的 jar 包名 -->
<finalName>${project.artifactId}</finalName> <finalName>${project.artifactId}</finalName>
<plugins>
<!-- 打包 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
</plugin>
<pluginManagement> <!-- 提供给 mapstruct 使用 -->
<plugins> <plugin>
<!-- 提供给 mapstruct 使用 --> <groupId>org.apache.maven.plugins</groupId>
<plugin> <artifactId>maven-compiler-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId> <version>${maven-compiler-plugin.version}</version>
<artifactId>maven-compiler-plugin</artifactId> <configuration>
<version>${maven-compiler-plugin.version}</version> <source>${java.version}</source> <!-- or higher, depending on your project -->
<configuration> <target>${java.version}</target> <!-- or higher, depending on your project -->
<source>${java.version}</source> <!-- or higher, depending on your project --> <annotationProcessorPaths>
<target>${java.version}</target> <!-- or higher, depending on your project --> <path>
<annotationProcessorPaths> <groupId>org.mapstruct</groupId>
<path> <artifactId>mapstruct-processor</artifactId>
<groupId>org.mapstruct</groupId> <version>${mapstruct.version}</version>
<artifactId>mapstruct-processor</artifactId> </path>
<version>${mapstruct.version}</version> <path>
</path> <groupId>org.projectlombok</groupId>
<path> <artifactId>lombok</artifactId>
<groupId>org.projectlombok</groupId> <version>${lombok.version}</version>
<artifactId>lombok</artifactId> </path>
<version>${lombok.version}</version> </annotationProcessorPaths>
</path> </configuration>
</annotationProcessorPaths> </plugin>
</configuration> </plugins>
</plugin>
<!-- 打包 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
</project> </project>