spring-guides / gs-spring-boot-for-azure

Deploying a Spring Boot app to Azure :: Learn how to deploy a Spring Boot app to Azure.

Home Page:https://spring.io/guides/gs/spring-boot-for-azure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failing to deploy the app to Azure Spring Apps

v-jiaodi opened this issue · comments

Describe the issue:
When executing ./mvnw azure-spring-apps:deploy according to README.md, the error is as follows:

image

Repro Steps:

  1. Create Azure Spring Apps in portal.
  2. Clone code to local and switch to complete folder.
  3. Config the web app:
export MAVEN_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED"
./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.14.0:config -DadvancedOptions
  1. Deploy the app: ./mvnw azure-spring-apps:deploy

Environment:

  • OS: Windows desktop.

Expected behavior:
Deploying the app can pass.

@hemarina for notification.

commented

@v-jiaodi thanks for helping testing the readme, could you change the version of maven plugin version from 1.14.0 to 1.18.0 and then rerun the deploy command?
that's to say, you can rerun the command ./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.18.0:config -DadvancedOptions, then run ./mvnw azure-spring-apps:deploy and see if the error still exists

commented

will update the version in #24

@yiliuTo Retest with the command ./mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.18.0:config -DadvancedOptions, then run ./mvnw azure-spring-apps:deploy, this error no longer exists.

commented

hi @v-jiaodi , now that pr #24 has been merged, could you double check and see if this issue can be closed? thanks