BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

Sample (java_springboot/servlet-echo) fails due to pom.xml configuration issue

Open sw-joelmut opened this issue 3 years ago • 1 comments

Context

For more information, see the parent issue. #3436

Sample information

  1. Sample type: Samples
  2. Sample language: java_springboot
  3. 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.

sw-joelmut avatar Aug 27 '21 15:08 sw-joelmut

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>

olivomarco avatar Nov 11 '21 10:11 olivomarco

Closing as Java SDK is retired as of Nov 2023

tracyboehrer avatar Feb 01 '24 19:02 tracyboehrer