You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the application yml file of the module spring-petclinic-customers-service:
spring:
application:
name: customers-service
Expected behavior
The node appName under maven plugin azure-spring-apps-maven-plugin is <appName>customers-service</appName>.
Since Azure Spring Apps uses the name of the app as the service name of the built-in eureka service, the Maven plugin for Azure Spring Apps extracts the artifact ID in the POM file as the app name by default, so it needs to be consistent with the spring.application.name of each module. So the plugin should take the name from spring.application.name first, then take the name from the artifact ID if not the definition application name property. If the final app name exceeds the max length, it should require the user to rename it, and also providing a normal name by default will be better.
Actual behavior
It's <appName>spring-petclinic-customers-service</appName>, and will encounter an exception when executing xx:deploy, this is because the app name exceeds the max length.
Navigate to the sample project directory, and execute mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.17.0:config to configure all the sub-modules to ASA
Plugin name and version
azure-spring-apps-maven-plugin
, 1.17.0Plugin configuration in your
pom.xml
the application yml file of the module
spring-petclinic-customers-service
:Expected behavior
The node appName under maven plugin
azure-spring-apps-maven-plugin
is<appName>customers-service</appName>
.Since Azure Spring Apps uses the name of the app as the service name of the built-in eureka service, the Maven plugin for Azure Spring Apps extracts the artifact ID in the POM file as the app name by default, so it needs to be consistent with the
spring.application.name
of each module. So the plugin should take the name fromspring.application.name
first, then take the name from the artifact ID if not the definition application name property. If the final app name exceeds the max length, it should require the user to rename it, and also providing a normal name by default will be better.Actual behavior
It's
<appName>spring-petclinic-customers-service</appName>
, and will encounter an exception when executingxx:deploy
, this is because the app name exceeds the max length.Steps to reproduce the problem
mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.17.0:config
to configure all the sub-modules to ASAmvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.17.0:deploy
The text was updated successfully, but these errors were encountered: