xiehuanqun hai 1 mes
pai
achega
005d62ab12
Modificáronse 1 ficheiros con 28 adicións e 0 borrados
  1. 28 0
      pom.xml

+ 28 - 0
pom.xml

@@ -135,6 +135,16 @@
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
                 <version>3.5.6</version>
+                <configuration>
+                    <mainClass>com.example.TestApplication</mainClass>
+                    <layout>ZIP</layout>
+                    <includes>
+                        <include>
+                            <groupId>nothing</groupId>
+                            <artifactId>nothing</artifactId>
+                        </include>
+                    </includes>
+                </configuration>
                 <executions>
                     <execution>
                         <goals>
@@ -143,6 +153,24 @@
                     </execution>
                 </executions>
             </plugin>
+            <!--将第三方依赖包拷贝到lib目录 (没有更新时注释)(第一次部署需要取消注释) -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy-dependencies</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>copy-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory> -->
+                            <outputDirectory>libs</outputDirectory>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>