|
|
@@ -131,21 +131,10 @@
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
- <!-- 创建一个不包含依赖的jar包 -->
|
|
|
<plugin>
|
|
|
<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>
|
|
|
@@ -154,24 +143,6 @@
|
|
|
</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>
|
|
|
|