Explorar o código

打包问题处理

Longjun.Tu %!s(int64=2) %!d(string=hai) anos
pai
achega
fbe2565119
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      iot-starter/pom.xml

+ 10 - 0
iot-starter/pom.xml

@@ -223,11 +223,21 @@
         </configuration>
       </plugin>
 
+      <plugin>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-maven-plugin</artifactId>
+      </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-assembly-plugin</artifactId>
         <configuration>
           <appendAssemblyId>false</appendAssemblyId>
+          <archive>
+            <manifest>
+              <mainClass>cc.iotkit.Application</mainClass>
+            </manifest>
+          </archive>
           <descriptors>
             <descriptor>${project.parent.basedir}/iot-starter/src/main/resources/assemblies/standalone-package.xml</descriptor>
           </descriptors>