Ver Fonte

fix: maven打包插件添加版本指定,由于移除了spring-boot-starter-parent,现在必须手动指定版本

hong.yang há 1 ano atrás
pai
commit
3f4eca709e
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      DataRoom/dataroom-server/pom.xml

+ 5 - 0
DataRoom/dataroom-server/pom.xml

@@ -19,6 +19,7 @@
         <maven.deploy.skip>true</maven.deploy.skip>
     </properties>
 
+
     <dependencies>
         <!--h2database-->
         <dependency>
@@ -65,6 +66,7 @@
                     <plugin>
                         <groupId>org.springframework.boot</groupId>
                         <artifactId>spring-boot-maven-plugin</artifactId>
+                        <version>2.7.16</version>
                         <!--下面的代码可以将依赖的第三方jar包通过maven插件打入工程的lib中-->
                         <executions>
                             <execution>
@@ -82,16 +84,19 @@
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-surefire-plugin</artifactId>
+                        <version>2.22.2</version>
                         <configuration>
                             <skipTests>true</skipTests>
                         </configuration>
                     </plugin>
                     <plugin>
                         <artifactId>maven-compiler-plugin</artifactId>
+                        <version>3.8.1</version>
                     </plugin>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-source-plugin</artifactId>
+                        <version>3.2.1</version>
                         <executions>
                             <execution>
                                 <phase>package</phase>