Browse Source

打包问题处理

Longjun.Tu 2 years ago
parent
commit
fbe2565119
1 changed files with 10 additions and 0 deletions
  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>