我有一个配置为部署到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)...
我已经等了几个小时了,它还没有结束
1条答案
按热度按时间42fyovps1#
您可以将
-X
标志添加到mvn azure-spring-apps:deploy -X
以获取更详细的日志。