BotBuilder-Samples
BotBuilder-Samples copied to clipboard
Sample (java_springboot/servlet-echo) fails due to pom.xml configuration issue
Context
For more information, see the parent issue. #3436
Sample information
- Sample type: Samples
- Sample language: java_springboot
- Sample name: java_springboot/servlet-echo
Describe the bug
While deploying this bot using the Azure CLI config-zip
deployment, the following bot failed due to a configuration issue in the pom.xml file.
Bots | Status |
---|---|
samples/java_springboot/servlet-echo | • Failed on zip bot deployment. • Fails due to, execute goal com.microsoft.azure:azure-webapp-maven-plugin:1.12.0:deploy (default-cli) on project bot-servlet-echo: The configuration is not applicable for the target Web App (Linux). Please correct it in pom.xml. |
Expected behavior
Bot should not fail build time in Azure.
Actual behavior
Fails on zip deployment.
Hello, I found this very same issue using:
Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.3
Java version: 17.0.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-17.0.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I resolved that by modifying the pom.xml file using a newer version of the azure webapp maven plugin:
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-webapp-maven-plugin</artifactId>
<version>1.14.0</version>
Closing as Java SDK is retired as of Nov 2023