spring-boot:build-image |
使用 buildpack 將應用打包成 OCI 映象,透過分叉生命週期確保執行了 package 。此目標適合命令列呼叫。如果需要在構建中配置目標 execution ,請改用 build-image-no-fork 。 |
spring-boot:build-image-no-fork |
使用 buildpack 將應用打包成 OCI 映象,但不分叉生命週期。此目標應在構建中配置目標 execution 時使用。要在命令列上呼叫此目標,請改用 build-image 。 |
spring-boot:build-info |
根據當前 MavenProject 的內容生成一個 build-info.properties 檔案。 |
spring-boot:help |
顯示關於 spring-boot-maven-plugin 的幫助資訊。呼叫 mvn spring-boot:help -Ddetail=true -Dgoal=<goal-name> 以顯示引數詳情。 |
spring-boot:process-aot |
在應用上呼叫 AOT 引擎。 |
spring-boot:process-test-aot |
在測試上呼叫 AOT 引擎。 |
spring-boot:repackage |
重新打包現有的 JAR 和 WAR 歸檔檔案,使其可以透過命令列使用 java -jar 執行。使用 layout=NONE 也可以簡單地用於打包包含巢狀依賴(且沒有主類,因此不可執行)的 JAR。 |
spring-boot:run |
就地執行應用。 |
spring-boot:start |
啟動一個 Spring 應用。與 run 目標相反,此目標不阻塞,並允許其他目標操作應用。此目標通常用於整合測試場景,在測試套件之前啟動應用並在之後停止應用。 |
spring-boot:stop |
停止由“start”目標啟動的應用。通常在測試套件完成後呼叫。 |
spring-boot:test-run |
使用測試執行時類路徑就地執行應用。用於啟動應用的主類按以下方式確定:配置的主類(如果存在)。然後是測試類目錄中找到的主類(如果存在)。然後是類目錄中找到的主類(如果存在)。 |