Browse Source

feat:配置服务端打包的jar可以直接运行

yang yi 1 month ago
parent
commit
1fb8982572
1 changed files with 10 additions and 0 deletions
  1. 10 0
      server/pom.xml

+ 10 - 0
server/pom.xml

@@ -51,6 +51,16 @@
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <mainClass>space.anyi.server.ServerApplication</mainClass>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
                 <version>${spring-boot.version}</version>
             </plugin>
         </plugins>