maven Azure Spring Cloud部署的SpringBoot在部署步骤卡住

wljmcqd8  于 2022-11-22  发布在  Maven
关注(0)|答案(1)|浏览(159)

我有一个配置为部署到Azure Spring Cloud的Sping Boot 应用程序。我有一个生成,我正在尝试部署它,但每个部署都卡住,无法完成。
Maven插件:

<plugin>
                <groupId>com.microsoft.azure</groupId>
                <artifactId>azure-spring-apps-maven-plugin</artifactId>
                <version>1.11.0</version>
                <configuration>
                    <subscriptionId>${azure.subscription.id}</subscriptionId>
                    <clusterName>cluster1</clusterName>
                    <appName>${azure.appName}</appName>
                    <deployment>
                        <cpu>1</cpu>
                        <memoryInGB>1</memoryInGB>
                        <instanceCount>1</instanceCount>
                        <runtimeVersion>Java 11</runtimeVersion>
                        <resources>
                            <resource>
                                <filtering/>
                                <mergeId/>
                                <targetPath/>
                                <directory>${project.basedir}/target</directory>
                                <includes>
                                    <include>*.jar</include>
                                </includes>
                            </resource>
                        </resources>
                    </deployment>
                </configuration>
            </plugin>

记录档:

$ mvn azure-spring-apps:deploy
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.test:spring-boot-app >---------------------
[INFO] Building spring-boot-app 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- azure-spring-apps-maven-plugin:1.11.0:deploy (default-cli) @ spring-boot-app ---
[INFO] Auth type: OAUTH2
[INFO] Retry attempts have been exhausted after 0 attempts.
[INFO] Retry attempts have been exhausted after 0 attempts.
[INFO] Retry attempts have been exhausted after 0 attempts.
[INFO] Retry attempts have been exhausted after 0 attempts.
Username: 2dor
[INFO] Subscription: Azure subscription 
[INFO] Reflections took 152 ms to scan 4 urls, producing 16 keys and 525 values
[INFO] Start updating deployment(default)...

我已经等了几个小时了,它还没有结束

42fyovps

42fyovps1#

您可以将-X标志添加到mvn azure-spring-apps:deploy -X以获取更详细的日志。

相关问题