Skip to content
Snippets Groups Projects
Commit 8a0996ed authored by 黄晋's avatar 黄晋
Browse files

打包设置

parent 0c58663d
No related merge requests found
......@@ -16,6 +16,7 @@
<properties>
<java.version>11</java.version>
<start-class>com.luca.pilot.PilotApplication</start-class>
</properties>
<dependencies>
......@@ -88,18 +89,22 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.11.RELEASE</version>
<configuration>
<mainClass>com.luca.pilot.PilotApplication</mainClass>
<skip>false</skip>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
<layout>JAR</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
......@@ -2,6 +2,8 @@ package com.luca.pilot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.scheduling.annotation.EnableScheduling;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment