Kaynağa Gözat

解决打包Unable to find main class

yzc 3 yıl önce
ebeveyn
işleme
f0ccb9af47
2 değiştirilmiş dosya ile 3 ekleme ve 16 silme
  1. 0 16
      pom.xml
  2. 3 0
      sckw-modules/sckw-message/pom.xml

+ 0 - 16
pom.xml

@@ -319,20 +319,4 @@
         </dependencies>
     </dependencyManagement>
 
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.springframework.boot</groupId>
-                <artifactId>spring-boot-maven-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>repackage</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>

+ 3 - 0
sckw-modules/sckw-message/pom.xml

@@ -82,6 +82,9 @@
                         </goals>
                     </execution>
                 </executions>
+                <configuration>
+                    <mainClass>com.sckw.message.MessageApplication</mainClass>
+                </configuration>
             </plugin>
         </plugins>
     </build>