Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

Spring Boot Deployment #27120

Closed SnehasishGuhaRoy closed 8 months ago

SnehasishGuhaRoy commented 1 year ago

Describe the bug

Cannot read files /Users/snehasishguharoy/.azure/azureProfile.json and /Users/snehasishguharoy/.azure/accessTokens.json. Are you logged in Azure CLI? Getting this while doing mvn azure-webapp:deploy for spring boot application deployment at terminal of Mac OS

Related command

mvn azure-webapp:deploy

Errors

Cannot read files /Users/snehasishguharoy/.azure/azureProfile.json and /Users/snehasishguharoy/.azure/accessTokens.json. Are you logged in Azure CLI?

Issue script & Debug output

Cannot read files /Users/snehasishguharoy/.azure/azureProfile.json and /Users/snehasishguharoy/.azure/accessTokens.json. Are you logged in Azure CLI?

Expected behavior

It should have deploy the spring boot application

Environment Summary

Screenshot 2023-08-09 at 1 02 28 AM

Additional context

No response

yonzhan commented 1 year ago

Thank you for opening this issue, we will look into it.

ghost commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

microsoft-github-policy-service[bot] commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

navba-MSFT commented 1 year ago

@SnehasishGuhaRoy Thanks for reaching out to us and reporting this issue. Could you please provide us the below details ?

  1. Which Azure CLI command are you running ?
  2. Could you please run the command with--debug parameter and share the verbose logs here ?
  3. Also share your use case and requierment.

This will help us to assist you better. Awaiting your reply.

SnehasishGuhaRoy commented 1 year ago

azure-cli 2.50.0 *

core 2.50.0 telemetry 1.0.8

Dependencies: msal 1.22.0 azure-mgmt-resource 23.1.0b2

Python location '/opt/homebrew/Cellar/azure-cli/2.50.0_1/libexec/bin/python' Extensions directory '/Users/snehasishguharoy/.azure/cliextensions'

Python (Darwin) 3.10.12 (main, Jul 28 2023, 18:34:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]

Legal docs and information: aka.ms/AzureCliLegal

SnehasishGuhaRoy commented 1 year ago

@SnehasishGuhaRoy Thanks for reaching out to us and reporting this issue. Could you please provide us the below details ?

  1. Which Azure CLI command are you running ?
  2. Could you please run the command with--debug parameter and share the verbose logs here ?
  3. Also share your use case and requierment.

This will help us to assist you better. Awaiting your reply.

[WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Expected root element 'settings' but found 'server' (position: START_TAG seen ... @1:9) @ /Users/snehasishguharoy/.m2/settings.xml, line 1, column 9 [WARNING] [INFO] Scanning for projects... [INFO] [INFO] -----< com.in28minutes.springboot.web:02-todo-web-application-h2 >------ [INFO] Building todo-web-application-h2 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- azure-webapp:1.7.0:deploy (default-cli) @ 02-todo-web-application-h2 --- [INFO] Authenticate with Azure CLI 2.0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.834 s [INFO] Finished at: 2023-08-09T13:44:43+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:deploy (default-cli) on project 02-todo-web-application-h2: Failed to authenticate with Azure. Please check your configuration. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9) Maven home: /Users/snehasishguharoy/apache-maven-3.9.4 Java version: 20.0.2, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/Home Default locale: en_IN, platform encoding: UTF-8 OS name: "mac os x", version: "13.3", arch: "aarch64", family: "mac" [DEBUG] Created new class realm maven.api [DEBUG] Importing foreign packages into class realm maven.api [DEBUG] Imported: javax.annotation. < plexus.core [DEBUG] Imported: javax.annotation.security. < plexus.core [DEBUG] Imported: javax.inject. < plexus.core [DEBUG] Imported: org.apache.maven. < plexus.core [DEBUG] Imported: org.apache.maven.artifact < plexus.core [DEBUG] Imported: org.apache.maven.classrealm < plexus.core [DEBUG] Imported: org.apache.maven.cli < plexus.core [DEBUG] Imported: org.apache.maven.configuration < plexus.core [DEBUG] Imported: org.apache.maven.exception < plexus.core [DEBUG] Imported: org.apache.maven.execution < plexus.core [DEBUG] Imported: org.apache.maven.execution.scope < plexus.core [DEBUG] Imported: org.apache.maven.graph < plexus.core [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core [DEBUG] Imported: org.apache.maven.model < plexus.core [DEBUG] Imported: org.apache.maven.monitor < plexus.core [DEBUG] Imported: org.apache.maven.plugin < plexus.core [DEBUG] Imported: org.apache.maven.profiles < plexus.core [DEBUG] Imported: org.apache.maven.project < plexus.core [DEBUG] Imported: org.apache.maven.reporting < plexus.core [DEBUG] Imported: org.apache.maven.repository < plexus.core [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core [DEBUG] Imported: org.apache.maven.settings < plexus.core [DEBUG] Imported: org.apache.maven.toolchain < plexus.core [DEBUG] Imported: org.apache.maven.usability < plexus.core [DEBUG] Imported: org.apache.maven.wagon. < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core [DEBUG] Imported: org.codehaus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus. < plexus.core [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus.component < plexus.core [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core [DEBUG] Imported: org.codehaus.plexus.container < plexus.core [DEBUG] Imported: org.codehaus.plexus.context < plexus.core [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core [DEBUG] Imported: org.eclipse.aether. < plexus.core [DEBUG] Imported: org.eclipse.aether.artifact < plexus.core [DEBUG] Imported: org.eclipse.aether.collection < plexus.core [DEBUG] Imported: org.eclipse.aether.deployment < plexus.core [DEBUG] Imported: org.eclipse.aether.graph < plexus.core [DEBUG] Imported: org.eclipse.aether.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.installation < plexus.core [DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.metadata < plexus.core [DEBUG] Imported: org.eclipse.aether.repository < plexus.core [DEBUG] Imported: org.eclipse.aether.resolution < plexus.core [DEBUG] Imported: org.eclipse.aether.spi < plexus.core [DEBUG] Imported: org.eclipse.aether.transfer < plexus.core [DEBUG] Imported: org.eclipse.aether.util < plexus.core [DEBUG] Imported: org.eclipse.aether.version < plexus.core [DEBUG] Imported: org.fusesource.jansi. < plexus.core [DEBUG] Imported: org.slf4j. < plexus.core [DEBUG] Imported: org.slf4j.event. < plexus.core [DEBUG] Imported: org.slf4j.helpers. < plexus.core [DEBUG] Imported: org.slf4j.spi. < plexus.core [DEBUG] Populating class realm maven.api [DEBUG] Created adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static] [INFO] Error stacktraces are turned on. [DEBUG] Message scheme: color [DEBUG] Message styles: debug info warning error success failure strong mojo project [DEBUG] Reading global settings from /Users/snehasishguharoy/apache-maven-3.9.4/conf/settings.xml [DEBUG] Reading user settings from /Users/snehasishguharoy/.m2/settings.xml [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Expected root element 'settings' but found 'server' (position: START_TAG seen ... @1:9) @ /Users/snehasishguharoy/.m2/settings.xml, line 1, column 9 [WARNING] [DEBUG] Reading global toolchains from /Users/snehasishguharoy/apache-maven-3.9.4/conf/toolchains.xml [DEBUG] Reading user toolchains from /Users/snehasishguharoy/.m2/toolchains.xml [DEBUG] Using local repository at /Users/snehasishguharoy/.m2/repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/snehasishguharoy/.m2/repository [INFO] Scanning for projects... [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local' [DEBUG] Extension realms for project com.in28minutes.springboot.web:02-todo-web-application-h2:war:0.0.1-SNAPSHOT: (none) [DEBUG] Looking up lifecycle mappings for packaging war from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.springframework.boot:spring-boot-starter-parent:pom:2.1.7.RELEASE: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.springframework.boot:spring-boot-dependencies:pom:2.1.7.RELEASE: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Resolving plugin prefix azure-webapp from [org.apache.maven.plugins, org.codehaus.mojo] [DEBUG] Resolved plugin prefix azure-webapp to com.microsoft.azure:azure-webapp-maven-plugin from POM com.in28minutes.springboot.web:02-todo-web-application-h2:war:0.0.1-SNAPSHOT [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: com.in28minutes.springboot.web:02-todo-web-application-h2:war:0.0.1-SNAPSHOT [DEBUG] Tasks: [azure-webapp:deploy] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO] [INFO] -----< com.in28minutes.springboot.web:02-todo-web-application-h2 >------ [INFO] Building todo-web-application-h2 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ war ]--------------------------------- [DEBUG] Resolving plugin prefix azure-webapp from [org.apache.maven.plugins, org.codehaus.mojo] [DEBUG] Resolved plugin prefix azure-webapp to com.microsoft.azure:azure-webapp-maven-plugin from POM com.in28minutes.springboot.web:02-todo-web-application-h2:war:0.0.1-SNAPSHOT [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: com.in28minutes.springboot.web:02-todo-web-application-h2:0.0.1-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [] [DEBUG] Repositories (dependencies): [spring-milestones (https://repo.spring.io/milestones, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] Repositories (plugins) : [spring-milestones (https://repo.spring.io/milestones, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:deploy (default-cli) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>

${allowTelemetry} todo-web-application-h2-snehasish ${appServicePlanName} ${appServicePlanResourceGroup} /Users/snehasishguharoy/Desktop/azure-spring-boot-h2/target *.war ${deployment} ${deploymentType} ${failsOnError} ${httpProxyHost} ${httpProxyPort} ${webapp.jarFile} ${webapp.javaVersion} ${webapp.javaWebContainer} ${webapp.linuxRuntime} ${webapp.path} B1 westeurope todo-web-application-h2 ${webapp.resources} linux jre8 TOMCAT 9.0${runtime} V2 ${webapp.skip} ${webapp.stopAppDuringDeployment} ${webapp.warFile}

[DEBUG] ======================================================================= [INFO] [INFO] --- azure-webapp:1.7.0:deploy (default-cli) @ 02-todo-web-application-h2 --- [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for apache.snapshots (http://repository.apache.org/snapshots). [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for repository.jboss.org (http://repository.jboss.org/maven2). [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for snapshots.jboss.org (http://snapshots.jboss.org/maven2). [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for oss.sonatype.org/jboss-snapshots (http://oss.sonatype.org/content/repositories/jboss-snapshots). [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for codehaus.snapshots (http://snapshots.repository.codehaus.org). [DEBUG] Could not find metadata net.minidev:json-smart/maven-metadata.xml in local (/Users/snehasishguharoy/.m2/repository) [DEBUG] net.minidev:json-smart/maven-metadata.xml was not found in https://repo.spring.io/milestones during a previous attempt. This failure was cached in the local repository and resolution is not be reattempted until the update interval of spring-milestones has elapsed or updates are forced [DEBUG] Skipped remote request for net.minidev:json-smart/maven-metadata.xml, locally cached metadata up-to-date [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for ow2-snapshot (http://repository.ow2.org/nexus/content/repositories/snapshots). [DEBUG] Could not find metadata com.nimbusds:lang-tag/maven-metadata.xml in local (/Users/snehasishguharoy/.m2/repository) [DEBUG] com.nimbusds:lang-tag/maven-metadata.xml was not found in https://repo.spring.io/milestones during a previous attempt. This failure was cached in the local repository and resolution is not be reattempted until the update interval of spring-milestones has elapsed or updates are forced [DEBUG] Skipped remote request for com.nimbusds:lang-tag/maven-metadata.xml, locally cached metadata up-to-date [DEBUG] Could not find metadata com.nimbusds:nimbus-jose-jwt/maven-metadata.xml in local (/Users/snehasishguharoy/.m2/repository) [DEBUG] com.nimbusds:nimbus-jose-jwt/maven-metadata.xml was not found in https://repo.spring.io/milestones during a previous attempt. This failure was cached in the local repository and resolution is not be reattempted until the update interval of spring-milestones has elapsed or updates are forced [DEBUG] Skipped remote request for com.nimbusds:nimbus-jose-jwt/maven-metadata.xml, locally cached metadata up-to-date [DEBUG] Could not find metadata net.minidev:json-smart/maven-metadata.xml in local (/Users/snehasishguharoy/.m2/repository) [DEBUG] net.minidev:json-smart/maven-metadata.xml was not found in https://repo.spring.io/milestones during a previous attempt. This failure was cached in the local repository and resolution is not be reattempted until the update interval of spring-milestones has elapsed or updates are forced [DEBUG] Skipped remote request for net.minidev:json-smart/maven-metadata.xml, locally cached metadata up-to-date [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans). [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=1957042, ConflictMarker.markTime=504125, ConflictMarker.nodeCount=1572, ConflictIdSorter.graphTime=922167, ConflictIdSorter.topsortTime=140083, ConflictIdSorter.conflictIdCount=121, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=7334459, ConflictResolver.conflictItemCount=417, DfDependencyCollector.collectTime=245297208, DfDependencyCollector.transformTime=11576917} [DEBUG] com.microsoft.azure:azure-webapp-maven-plugin:jar:1.7.0 [DEBUG] org.dom4j:dom4j:jar:2.0.2:compile [DEBUG] jaxen:jaxen:jar:1.1.6:compile [DEBUG] org.apache.commons:commons-collections4:jar:4.2:compile [DEBUG] org.apache.maven:maven-plugin-api:jar:3.3.3:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.3.3:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.0:compile [DEBUG] javax.enterprise:cdi-api:jar:1.0:compile [DEBUG] javax.annotation:jsr250-api:jar:1.0:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0:compile [DEBUG] org.apache.maven:maven-core:jar:3.3.3:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.3.3:compile [DEBUG] org.apache.maven:maven-builder-support:jar:3.3.3:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.3.3:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.3.3:compile [DEBUG] org.apache.maven:maven-aether-provider:jar:3.3.3:compile [DEBUG] org.eclipse.aether:aether-spi:jar:1.0.2.v20150114:compile [DEBUG] org.eclipse.aether:aether-impl:jar:1.0.2.v20150114:compile [DEBUG] org.eclipse.aether:aether-api:jar:1.0.2.v20150114:compile [DEBUG] org.eclipse.aether:aether-util:jar:1.0.2.v20150114:compile [DEBUG] org.sonatype.sisu:sisu-guice:jar:no_aop:3.2.5:compile [DEBUG] javax.inject:javax.inject:jar:1:compile [DEBUG] aopalliance:aopalliance:jar:1.0:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.21:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven:maven-settings:jar:3.3.3:compile [DEBUG] org.apache.maven:maven-model:jar:3.3.3:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.20:compile [DEBUG] com.microsoft.azure:azure-maven-plugin-lib:jar:1.2.9:compile [DEBUG] org.apache.maven.shared:maven-filtering:jar:3.0.0:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.0.0:compile [DEBUG] commons-io:commons-io:jar:2.4:compile [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.1:compile [DEBUG] org.sonatype.plexus:plexus-build-api:jar:0.0.7:compile [DEBUG] com.microsoft.azure:azure:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-client-runtime:jar:1.6.4:compile [DEBUG] com.microsoft.rest:client-runtime:jar:1.6.4:compile [DEBUG] com.google.guava:guava:jar:20.0:compile [DEBUG] com.squareup.retrofit2:retrofit:jar:2.4.0:compile [DEBUG] com.squareup.okhttp3:okhttp:jar:3.11.0:compile [DEBUG] com.squareup.okio:okio:jar:1.14.0:compile [DEBUG] com.squareup.okhttp3:logging-interceptor:jar:3.11.0:compile [DEBUG] com.squareup.okhttp3:okhttp-urlconnection:jar:3.11.0:compile [DEBUG] com.squareup.retrofit2:converter-jackson:jar:2.4.0:compile [DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.9.4:compile [DEBUG] com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.9.4:compile [DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile [DEBUG] org.apache.commons:commons-lang3:jar:3.4:compile [DEBUG] com.squareup.retrofit2:adapter-rxjava:jar:2.4.0:compile [DEBUG] com.microsoft.azure:azure-client-authentication:jar:1.6.4:compile [DEBUG] commons-codec:commons-codec:jar:1.11:compile [DEBUG] com.microsoft.azure:adal4j:jar:1.6.2:compile [DEBUG] com.nimbusds:oauth2-oidc-sdk:jar:5.64.4:compile [DEBUG] com.sun.mail:javax.mail:jar:1.6.1:compile [DEBUG] javax.activation:activation:jar:1.1:compile [DEBUG] com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile [DEBUG] net.minidev:json-smart:jar:2.3:compile [DEBUG] net.minidev:accessors-smart:jar:1.2:compile [DEBUG] org.ow2.asm:asm:jar:5.0.4:compile [DEBUG] com.nimbusds:lang-tag:jar:1.7:compile [DEBUG] com.nimbusds:nimbus-jose-jwt:jar:9.31:compile [DEBUG] com.microsoft.azure:azure-annotations:jar:1.7.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-resources:jar:1.21.0:compile [DEBUG] io.reactivex:rxjava:jar:1.3.8:compile [DEBUG] org.apache.httpcomponents:httpcore:jar:4.4.5:compile [DEBUG] com.microsoft.azure:azure-mgmt-storage:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-network:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-compute:jar:1.21.0:compile [DEBUG] com.google.code.gson:gson:jar:2.2.4:compile [DEBUG] com.microsoft.azure:azure-mgmt-graph-rbac:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-keyvault:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-keyvault:jar:1.0.0:compile [DEBUG] com.microsoft.azure:azure-keyvault-webkey:jar:1.0.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-batch:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-trafficmanager:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-dns:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-redis:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-appservice:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-storage:jar:6.1.0:compile [DEBUG] com.microsoft.azure:azure-keyvault-core:jar:0.8.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-locks:jar:1.21.0:compile [DEBUG] javax.xml.bind:jaxb-api:jar:2.3.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-eventhub:jar:1.21.0:compile [DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.9.4:compile [DEBUG] com.microsoft.azure:azure-mgmt-cdn:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-sql:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-containerinstance:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-containerregistry:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-containerservice:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-cosmosdb:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-search:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-msi:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-monitor:jar:1.21.0:compile [DEBUG] com.microsoft.azure:azure-mgmt-servicebus:jar:1.21.0:compile [DEBUG] joda-time:joda-time:jar:2.1:compile [DEBUG] com.microsoft.azure:azure-mgmt-batchai:jar:1.21.0:compile [DEBUG] com.microsoft.azure:applicationinsights-core:jar:2.2.1:compile [DEBUG] commons-net:commons-net:jar:3.6:compile [DEBUG] org.zeroturnaround:zt-zip:jar:1.13:compile [DEBUG] org.slf4j:slf4j-api:jar:1.6.6:compile [DEBUG] jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2:compile [DEBUG] jakarta.activation:jakarta.activation-api:jar:1.2.1:compile [DEBUG] org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile [DEBUG] org.glassfish.jaxb:txw2:jar:2.3.2:compile [DEBUG] com.sun.istack:istack-commons-runtime:jar:3.0.8:compile [DEBUG] org.jvnet.staxex:stax-ex:jar:1.8.1:compile [DEBUG] com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16:compile [DEBUG] junit:junit:jar:4.12:compile [DEBUG] org.hamcrest:hamcrest-core:jar:1.3:compile [DEBUG] Created new class realm plugin>com.microsoft.azure:azure-webapp-maven-plugin:1.7.0 [DEBUG] Importing foreign packages into class realm plugin>com.microsoft.azure:azure-webapp-maven-plugin:1.7.0 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>com.microsoft.azure:azure-webapp-maven-plugin:1.7.0 [DEBUG] Included: com.microsoft.azure:azure-webapp-maven-plugin:jar:1.7.0 [DEBUG] Included: org.dom4j:dom4j:jar:2.0.2 [DEBUG] Included: jaxen:jaxen:jar:1.1.6 [DEBUG] Included: org.apache.commons:commons-collections4:jar:4.2 [DEBUG] Included: javax.enterprise:cdi-api:jar:1.0 [DEBUG] Included: javax.annotation:jsr250-api:jar:1.0 [DEBUG] Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0 [DEBUG] Included: org.apache.maven:maven-builder-support:jar:3.3.3 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.2.5 [DEBUG] Included: aopalliance:aopalliance:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.21 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.20 [DEBUG] Included: com.microsoft.azure:azure-maven-plugin-lib:jar:1.2.9 [DEBUG] Included: org.apache.maven.shared:maven-filtering:jar:3.0.0 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.0.0 [DEBUG] Included: commons-io:commons-io:jar:2.4 [DEBUG] Included: com.google.code.findbugs:jsr305:jar:2.0.1 [DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.7 [DEBUG] Included: com.microsoft.azure:azure:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-client-runtime:jar:1.6.4 [DEBUG] Included: com.microsoft.rest:client-runtime:jar:1.6.4 [DEBUG] Included: com.google.guava:guava:jar:20.0 [DEBUG] Included: com.squareup.retrofit2:retrofit:jar:2.4.0 [DEBUG] Included: com.squareup.okhttp3:okhttp:jar:3.11.0 [DEBUG] Included: com.squareup.okio:okio:jar:1.14.0 [DEBUG] Included: com.squareup.okhttp3:logging-interceptor:jar:3.11.0 [DEBUG] Included: com.squareup.okhttp3:okhttp-urlconnection:jar:3.11.0 [DEBUG] Included: com.squareup.retrofit2:converter-jackson:jar:2.4.0 [DEBUG] Included: com.fasterxml.jackson.core:jackson-databind:jar:2.9.4 [DEBUG] Included: com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.9.4 [DEBUG] Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0 [DEBUG] Included: org.apache.commons:commons-lang3:jar:3.4 [DEBUG] Included: com.squareup.retrofit2:adapter-rxjava:jar:2.4.0 [DEBUG] Included: com.microsoft.azure:azure-client-authentication:jar:1.6.4 [DEBUG] Included: commons-codec:commons-codec:jar:1.11 [DEBUG] Included: com.microsoft.azure:adal4j:jar:1.6.2 [DEBUG] Included: com.nimbusds:oauth2-oidc-sdk:jar:5.64.4 [DEBUG] Included: com.sun.mail:javax.mail:jar:1.6.1 [DEBUG] Included: javax.activation:activation:jar:1.1 [DEBUG] Included: com.github.stephenc.jcip:jcip-annotations:jar:1.0-1 [DEBUG] Included: net.minidev:json-smart:jar:2.3 [DEBUG] Included: net.minidev:accessors-smart:jar:1.2 [DEBUG] Included: org.ow2.asm:asm:jar:5.0.4 [DEBUG] Included: com.nimbusds:lang-tag:jar:1.7 [DEBUG] Included: com.nimbusds:nimbus-jose-jwt:jar:9.31 [DEBUG] Included: com.microsoft.azure:azure-annotations:jar:1.7.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-resources:jar:1.21.0 [DEBUG] Included: io.reactivex:rxjava:jar:1.3.8 [DEBUG] Included: org.apache.httpcomponents:httpcore:jar:4.4.5 [DEBUG] Included: com.microsoft.azure:azure-mgmt-storage:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-network:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-compute:jar:1.21.0 [DEBUG] Included: com.google.code.gson:gson:jar:2.2.4 [DEBUG] Included: com.microsoft.azure:azure-mgmt-graph-rbac:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-keyvault:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-keyvault:jar:1.0.0 [DEBUG] Included: com.microsoft.azure:azure-keyvault-webkey:jar:1.0.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-batch:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-trafficmanager:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-dns:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-redis:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-appservice:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-storage:jar:6.1.0 [DEBUG] Included: com.microsoft.azure:azure-keyvault-core:jar:0.8.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-locks:jar:1.21.0 [DEBUG] Included: javax.xml.bind:jaxb-api:jar:2.3.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-eventhub:jar:1.21.0 [DEBUG] Included: com.fasterxml.jackson.core:jackson-core:jar:2.9.4 [DEBUG] Included: com.microsoft.azure:azure-mgmt-cdn:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-sql:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-containerinstance:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-containerregistry:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-containerservice:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-cosmosdb:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-search:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-msi:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-monitor:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:azure-mgmt-servicebus:jar:1.21.0 [DEBUG] Included: joda-time:joda-time:jar:2.1 [DEBUG] Included: com.microsoft.azure:azure-mgmt-batchai:jar:1.21.0 [DEBUG] Included: com.microsoft.azure:applicationinsights-core:jar:2.2.1 [DEBUG] Included: commons-net:commons-net:jar:3.6 [DEBUG] Included: org.zeroturnaround:zt-zip:jar:1.13 [DEBUG] Included: jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2 [DEBUG] Included: jakarta.activation:jakarta.activation-api:jar:1.2.1 [DEBUG] Included: org.glassfish.jaxb:jaxb-runtime:jar:2.3.2 [DEBUG] Included: org.glassfish.jaxb:txw2:jar:2.3.2 [DEBUG] Included: com.sun.istack:istack-commons-runtime:jar:3.0.8 [DEBUG] Included: org.jvnet.staxex:stax-ex:jar:1.8.1 [DEBUG] Included: com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16 [DEBUG] Included: junit:junit:jar:4.12 [DEBUG] Included: org.hamcrest:hamcrest-core:jar:1.3 [DEBUG] Loading mojo com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:deploy from plugin realm ClassRealm[plugin>com.microsoft.azure:azure-webapp-maven-plugin:1.7.0, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@7e32c033] [DEBUG] Configuring mojo execution 'com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:deploy:default-cli' with basic configurator --> [DEBUG] (f) allowTelemetry = true [DEBUG] (f) appName = todo-web-application-h2-snehasish [DEBUG] (f) buildDirectory = /Users/snehasishguharoy/Desktop/azure-spring-boot-h2/target [DEBUG] (s) directory = /Users/snehasishguharoy/Desktop/azure-spring-boot-h2/target [DEBUG] (s) includes = [.war] [DEBUG] (s) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: /Users/snehasishguharoy/Desktop/azure-spring-boot-h2/target, PatternSet [includes: {.war}, excludes: {}]}}] [DEBUG] (f) deployment = com.microsoft.azure.maven.webapp.configuration.Deployment@3fbe503c [DEBUG] (f) failsOnError = true [DEBUG] (f) httpProxyPort = 80 [DEBUG] (f) javaWebContainer = tomcat 8.5 [DEBUG] (f) path = / [DEBUG] (f) plugin = Component Descriptor: role: 'org.apache.maven.plugin.Mojo', implementation: 'com.microsoft.azure.maven.webapp.ConfigMojo', role hint: 'com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:config' role: 'org.apache.maven.plugin.Mojo', implementation: 'com.microsoft.azure.maven.webapp.DeployMojo', role hint: 'com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:deploy' role: 'org.apache.maven.plugin.Mojo', implementation: 'com.microsoft.azure.maven.webapp.HelpMojo', role hint: 'com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:help'

[DEBUG] (f) pricingTier = B1 [DEBUG] (f) project = MavenProject: com.in28minutes.springboot.web:02-todo-web-application-h2:0.0.1-SNAPSHOT @ /Users/snehasishguharoy/Desktop/azure-spring-boot-h2/pom.xml [DEBUG] (f) region = westeurope [DEBUG] (f) resourceGroup = todo-web-application-h2 [DEBUG] (f) resources = [] [DEBUG] (f) os = linux [DEBUG] (f) javaVersion = jre8 [DEBUG] (f) webContainer = TOMCAT 9.0 [DEBUG] (s) runtime = com.microsoft.azure.maven.webapp.configuration.RuntimeSetting@3aed69dd [DEBUG] (f) schemaVersion = V2 [DEBUG] (f) session = org.apache.maven.execution.MavenSession@3f1a9a53 [DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@1ca3d25b [DEBUG] (f) skip = false [DEBUG] (f) stopAppDuringDeployment = false [DEBUG] -- end configuration -- [INFO] Authenticate with Azure CLI 2.0 [DEBUG] Failed to authenticate with Azure CLI 2.0 [DEBUG] java.io.FileNotFoundException: /Users/snehasishguharoy/.azure/accessTokens.json (No such file or directory) at java.io.FileInputStream.open0 (Native Method) at java.io.FileInputStream.open (FileInputStream.java:219) at java.io.FileInputStream. (FileInputStream.java:158) at com.fasterxml.jackson.core.JsonFactory.createParser (JsonFactory.java:766) at com.fasterxml.jackson.databind.ObjectMapper.readValue (ObjectMapper.java:2909) at com.microsoft.azure.credentials.AzureCliCredentials.loadAccessTokens (AzureCliCredentials.java:45) at com.microsoft.azure.credentials.AzureCliCredentials.create (AzureCliCredentials.java:95) at com.microsoft.azure.credentials.AzureCliCredentials.create (AzureCliCredentials.java:78) at com.microsoft.azure.maven.auth.AzureAuthHelper.getAuthObjFromAzureCli (AzureAuthHelper.java:248) at com.microsoft.azure.maven.auth.AzureAuthHelper.getAuthObj (AzureAuthHelper.java:162) at com.microsoft.azure.maven.auth.AzureAuthHelper.getAzureClient (AzureAuthHelper.java:94) at com.microsoft.azure.maven.AbstractAzureMojo.getAzureClient (AbstractAzureMojo.java:226) at com.microsoft.azure.maven.webapp.DeployMojo.doExecute (DeployMojo.java:51) at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:309) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke (Method.java:578) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.813 s [INFO] Finished at: 2023-08-09T13:45:02+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:deploy (default-cli) on project 02-todo-web-application-h2: Failed to authenticate with Azure. Please check your configuration. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:1.7.0:deploy (default-cli) on project 02-todo-web-application-h2: Failed to authenticate with Azure. Please check your configuration. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke (Method.java:578) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to authenticate with Azure. Please check your configuration. at com.microsoft.azure.maven.AbstractAzureMojo.handleException (AbstractAzureMojo.java:380) at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:314) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke (Method.java:578) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) Caused by: com.microsoft.azure.maven.auth.AzureAuthFailureException: Failed to authenticate with Azure. Please check your configuration. at com.microsoft.azure.maven.AbstractAzureMojo.getAzureClient (AbstractAzureMojo.java:229) at com.microsoft.azure.maven.webapp.DeployMojo.doExecute (DeployMojo.java:51) at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:309) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283) at org.apache.maven.cli.MavenCli.main (MavenCli.java:206) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104) at java.lang.reflect.Method.invoke (Method.java:578) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [DEBUG] Shutting down adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static] [DEBUG] Shutting down 'file-lock' factory [DEBUG] Shutting down 'rwlock-local' factory [DEBUG] Shutting down 'semaphore-local' factory [DEBUG] Shutting down 'noop' factory

I am doing az login and it is successful. Please check

navba-MSFT commented 1 year ago

@SnehasishGuhaRoy Thanks for your reply. I am adding the service team to assist you further.

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

tulikac commented 9 months ago

@dannysongg Can you please investigate if this is related to CLI or a springboot issues?

Flanker32 commented 9 months ago

@SnehasishGuhaRoy Thank you for your report and we apologize for the delayed response. It seems that you are using an outdated version of the web app maven plugin, which is incompatible with the azure cli on your machine. To solve this issue, could you please upgrade to the latest web app maven plugin v2.13.0? You can find the related documentation for the maven plugin here. If you encounter any problems, please do not hesitate to open an issue in the plugin repository. We will also update our message and wiki to provide more clear solutions for authentication problems. Thank you again for your help.

btardif commented 8 months ago

closing this issue as per @Flanker32 comment. CCL @tulikac