Open moarychan opened 1 year ago
@moarychan Thanks for your report and sorry for the late response, currently spring apps maven plugin does not support modify existing configuration, but if you want to set cpu/memory during config, you may add -DadvancedOptions, here is the screen shot
Plugin name and version
azure-spring-apps-maven-plugin
, 1.17.0Plugin configuration in your
pom.xml
Expected behavior
The node
configuration
of the maven pluginazure-spring-apps-maven-plugin
.The configuration of the Maven plugin can define default configuration items or deployment items. When executing
xxx:config
, if the user does not want to use the default value, give a new value, such as<appName>customers-service</appName>
,<runtimeVersion>Java 17</runtimeVersion>
, etc. When saving into the POM file, all configured configurations will be merged into the maven plugin configuration node.Actual behavior
Will skip config the module if there's a pre-definition for the Spring apps maven plugin.
Steps to reproduce the problem
Clone code https://github.com/Azure-Samples/spring-petclinic-microservices
Navigate to the sample project directory, and add the below plugin for the customer module:
Execute
mvnw com.microsoft.azure:azure-spring-apps-maven-plugin:1.17.0:config
to configure all the sub-modules to ASA, it will skip the module customer.