401 error using APIGEE Maven Deployment plugin.

Hi,

We are getting 401 error when trying to deploy proxy to apigee edge using plugin.
Tried with hard-coded values ​​in pom file,  Also tried to handle special characters in password within single quotes in maven command, but Still getting 401 error.

However I'm able to login using same credentials into Edge UI and upload the proxy,  But 

when I use the same credential using maven deploy plugin, it returns 401 Unauthorized error.

someone can help me figure out how to deploy proxy without 401 error.

Thanks a lot in advance for your help and kind regards.

Kindly refer the log:

 

 

.....
[INFO] --- apigee-edge-maven-plugin:1.2.4:configure (configure-bundle-step) @ cmp_GIES_Boomi_PowerAutomate ---
[DEBUG] Could not find metadata com.google.guava:guava/maven-metadata.xml in local (C:\Users\SA-Jenkins-Admin-Pr\.m2\repository)
[DEBUG] Skipped remote request for com.google.guava:guava/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Skipped remote request for com.google.guava:guava/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=562944, ConflictMarker.markTime=251075, ConflictMarker.nodeCount=276, ConflictIdSorter.graphTime=237258, ConflictIdSorter.topsortTime=33160, ConflictIdSorter.conflictIdCount=41, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1214712, ConflictResolver.conflictItemCount=84, DefaultDependencyCollector.collectTime=337893207, DefaultDependencyCollector.transformTime=2364286}
[DEBUG] io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:jar:1.2.4
[DEBUG] org.slf4j:slf4j-api:jar:1.6.6:compile
[DEBUG] org.slf4j:jcl-over-slf4j:jar:1.6.6:compile
[DEBUG] com.google.http-client:google-http-client:jar:1.22.0:compile
[DEBUG] com.google.code.findbugs:jsr305:jar:1.3.9:compile
[DEBUG] org.apache.httpcomponents:httpclient:jar:4.5.13:compile (version managed from default) (exclusions managed from default)
[DEBUG] org.apache.httpcomponents:httpcore:jar:4.4.13:compile (version managed from default)
[DEBUG] com.google.http-client:google-http-client-gson:jar:1.22.0:compile
[DEBUG] commons-io:commons-io:jar:2.7:compile
[DEBUG] org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG] commons-codec:commons-codec:jar:1.10:compile
[DEBUG] com.google.guava:guava:jar:31.0.1-jre:compile
[DEBUG] com.google.guava:failureaccess:jar:1.0.1:compile
[DEBUG] com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[DEBUG] org.checkerframework:checker-qual:jar:3.12.0:compile
[DEBUG] com.google.errorprone:error_prone_annotations:jar:2.7.1:compile
[DEBUG] com.google.j2objc:j2objc-annotations:jar:1.3:compile
[DEBUG] com.google.code.gson:gson:jar:2.2.2:compile
[DEBUG] xalan:xalan:jar:2.7.1:compile
[DEBUG] xalan:serializer:jar:2.7.1:compile
[DEBUG] xml-apis:xml-apis:jar:1.3.04:compile
[DEBUG] org.eclipse.jgit:org.eclipse.jgit:jar:3.3.2.201404171909-r:compile
[DEBUG] com.jcraft:jsch:jar:0.1.50:compile
[DEBUG] com.googlecode.javaewah:JavaEWAH:jar:0.7.9:compile
[DEBUG] org.springframework:spring-core:jar:5.2.5.RELEASE:compile (exclusions managed from default)
[DEBUG] org.springframework:spring-jcl:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-context:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-aop:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-beans:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-expression:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-web:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework.security:spring-security-crypto:jar:3.2.9.RELEASE:compile
[DEBUG] cglib:cglib:jar:2.2.2:compile
[DEBUG] asm:asm:jar:3.3.1:compile
[DEBUG] com.auth0:java-jwt:jar:3.1.0:compile
[DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.11.0.rc1:compile (version managed from default)
[DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.11.0.rc1:compile (version managed from default)
[DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.11.0.rc1:compile (version managed from default)
[DEBUG] org.bouncycastle:bcprov-jdk15on:jar:1.55:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime
[DEBUG] Created new class realm plugin>io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.4
[DEBUG] Importing foreign packages into class realm plugin>io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.4
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.4
[DEBUG] Included: io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:jar:1.2.4
[DEBUG] Included: org.slf4j:jcl-over-slf4j:jar:1.6.6
[DEBUG] Included: com.google.http-client:google-http-client:jar:1.22.0
[DEBUG] Included: com.google.code.findbugs:jsr305:jar:1.3.9
[DEBUG] Included: org.apache.httpcomponents:httpclient:jar:4.5.13
[DEBUG] Included: org.apache.httpcomponents:httpcore:jar:4.4.13
[DEBUG] Included: com.google.http-client:google-http-client-gson:jar:1.22.0
[DEBUG] Included: commons-io:commons-io:jar:2.7
[DEBUG] Included: org.apache.commons:commons-lang3:jar:3.1
[DEBUG] Included: commons-codec:commons-codec:jar:1.10
[DEBUG] Included: com.google.guava:guava:jar:31.0.1-jre
[DEBUG] Included: com.google.guava:failureaccess:jar:1.0.1
[DEBUG] Included: com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava
[DEBUG] Included: org.checkerframework:checker-qual:jar:3.12.0
[DEBUG] Included: com.google.errorprone:error_prone_annotations:jar:2.7.1
[DEBUG] Included: com.google.j2objc:j2objc-annotations:jar:1.3
[DEBUG] Included: com.google.code.gson:gson:jar:2.2.2
[DEBUG] Included: xalan:xalan:jar:2.7.1
[DEBUG] Included: xalan:serializer:jar:2.7.1
[DEBUG] Included: xml-apis:xml-apis:jar:1.3.04
[DEBUG] Included: org.eclipse.jgit:org.eclipse.jgit:jar:3.3.2.201404171909-r
[DEBUG] Included: com.jcraft:jsch:jar:0.1.50
[DEBUG] Included: com.googlecode.javaewah:JavaEWAH:jar:0.7.9
[DEBUG] Included: org.springframework:spring-core:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-jcl:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-context:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-aop:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-beans:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-expression:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-web:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework.security:spring-security-crypto:jar:3.2.9.RELEASE
[DEBUG] Included: cglib:cglib:jar:2.2.2
[DEBUG] Included: asm:asm:jar:3.3.1
[DEBUG] Included: com.auth0:java-jwt:jar:3.1.0
[DEBUG] Included: com.fasterxml.jackson.core:jackson-databind:jar:2.11.0.rc1
[DEBUG] Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.11.0.rc1
[DEBUG] Included: com.fasterxml.jackson.core:jackson-core:jar:2.11.0.rc1
[DEBUG] Included: org.bouncycastle:bcprov-jdk15on:jar:1.55
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.1
[DEBUG] Configuring mojo io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.4:configure from plugin realm ClassRealm[plugin>io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.4, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
[DEBUG] Configuring mojo 'io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.2.4:configure' with basic configurator -->
[DEBUG] (f) apiType = apiproxy
[DEBUG] (f) apiVersion = v1
[DEBUG] (f) artifactId = cmp_GIES_Boomi_PowerAutomate
[DEBUG] (f) authType = oauth
[DEBUG] (s) baseDirectory = D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate
[DEBUG] (f) buildDirectory = D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target
[DEBUG] (s) delay = 0
[DEBUG] (f) deploymentEnv = dev
[DEBUG] (f) hostURL = https://cmp-companies-nonprod.apigee.com
[DEBUG] (s) id = dev
[DEBUG] (f) orgName = cmp-non-prod
[DEBUG] (s) overrideDelay = 0
[DEBUG] (f) password = ********
[DEBUG] (f) project = MavenProject: Apigee:cmp_GIES_Boomi_PowerAutomate:1.0 @ D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\pom.xml
[DEBUG] (f) projectName = cmp_GIES_Boomi_PowerAutomate
[DEBUG] (f) projectVersion = 1.0
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@3670f00
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@c7a977f
[DEBUG] (s) skip = false
[DEBUG] (f) tokenURL = https://cmp-companies-nonprod.login.apigee.com/oauth/token
[DEBUG] (f) username = anoop.saxena@cmp.com
[DEBUG] -- end configuration --
[INFO] No config.json found. Skipping package configuration.
[INFO] Checking for node.js app
[INFO] Create Apigee App Bundle D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\cmp_GIES_Boomi_PowerAutomate-1.0-dev.zip
[DEBUG] Creating : D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\cmp_GIES_Boomi_PowerAutomate-1.0-dev.zip
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\manifests\manifest.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\policies\add-cors.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\policies\FC-get-backend-server.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\policies\FC-get-F5-routing-parameters.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\policies\JS-backend-operation-mapping.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\policies\VerifyAccessToken.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\proxies\default.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\resources\jsc\JS-backend-operation-mapping.js
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\targets\default.xml
[DEBUG] Adding: D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target\apiproxy\cmp_GIES_Boomi_PowerAutomate.xml
[INFO]
[INFO] --- apigee-config-maven-plugin:1.4.6:specs (create-config-specs) @ cmp_GIES_Boomi_PowerAutomate ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=242390, ConflictMarker.markTime=81323, ConflictMarker.nodeCount=82, ConflictIdSorter.graphTime=85666, ConflictIdSorter.topsortTime=31976, ConflictIdSorter.conflictIdCount=52, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1187868, ConflictResolver.conflictItemCount=73, DefaultDependencyCollector.collectTime=100078521, DefaultDependencyCollector.transformTime=1657250}
[DEBUG] com.apigee.edge.config:apigee-config-maven-plugin:jar:1.4.6
[DEBUG] org.apache.maven:maven-plugin-api:jar:3.1.0:compile
[DEBUG] org.apache.maven:maven-model:jar:3.1.0:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.10:compile
[DEBUG] org.apache.maven:maven-artifact:jar:3.1.0:compile
[DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.0.0.M2a:compile
[DEBUG] javax.enterprise:cdi-api:jar:1.0:compile
[DEBUG] javax.annotation:jsr250-api:jar:1.0:compile
[DEBUG] javax.inject:javax.inject:jar:1:compile
[DEBUG] com.google.guava:guava:jar:10.0.1:compile
[DEBUG] org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:compile
[DEBUG] aopalliance:aopalliance:jar:1.0:compile
[DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.0.0.M2a:compile
[DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.4:compile
[DEBUG] org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[DEBUG] org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[DEBUG] com.google.http-client:google-http-client:jar:1.22.0:compile
[DEBUG] com.google.code.findbugs:jsr305:jar:1.3.9:compile
[DEBUG] com.google.http-client:google-http-client-gson:jar:1.22.0:compile
[DEBUG] com.google.code.gson:gson:jar:2.1:compile
[DEBUG] org.slf4j:slf4j-log4j12:jar:1.6.6:compile
[DEBUG] org.slf4j:slf4j-api:jar:1.6.6:compile
[DEBUG] log4j:log4j:jar:1.2.17:compile
[DEBUG] org.eclipse.jgit:org.eclipse.jgit:jar:3.3.2.201404171909-r:compile
[DEBUG] com.jcraft:jsch:jar:0.1.50:compile
[DEBUG] com.googlecode.javaewah:JavaEWAH:jar:0.7.9:compile
[DEBUG] com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[DEBUG] junit:junit:jar:4.10:compile
[DEBUG] org.hamcrest:hamcrest-core:jar:1.1:compile
[DEBUG] org.springframework:spring-core:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-jcl:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-context:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-aop:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-beans:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-expression:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework:spring-web:jar:5.2.5.RELEASE:compile
[DEBUG] org.springframework.security:spring-security-crypto:jar:4.2.9.RELEASE:compile
[DEBUG] cglib:cglib:jar:2.2.2:compile
[DEBUG] asm:asm:jar:3.3.1:compile
[DEBUG] com.auth0:java-jwt:jar:3.1.0:compile
[DEBUG] org.bouncycastle:bcprov-jdk15on:jar:1.55:compile
[DEBUG] commons-io:commons-io:jar:2.7:compile
[DEBUG] org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG] commons-codec:commons-codec:jar:1.10:compile
[DEBUG] net.javacrumbs.json-unit:json-unit:jar:2.7.0:compile
[DEBUG] net.javacrumbs.json-unit:json-unit-core:jar:2.7.0:compile
[DEBUG] org.opentest4j:opentest4j:jar:1.1.1:compile
[DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.11.0.rc1:compile
[DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.11.0.rc1:compile
[DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.11.0.rc1:compile
[DEBUG] Created new class realm plugin>com.apigee.edge.config:apigee-config-maven-plugin:1.4.6
[DEBUG] Importing foreign packages into class realm plugin>com.apigee.edge.config:apigee-config-maven-plugin:1.4.6
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>com.apigee.edge.config:apigee-config-maven-plugin:1.4.6
[DEBUG] Included: com.apigee.edge.config:apigee-config-maven-plugin:jar:1.4.6
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.10
[DEBUG] Included: javax.enterprise:cdi-api:jar:1.0
[DEBUG] Included: com.google.guava:guava:jar:10.0.1
[DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0
[DEBUG] Included: aopalliance:aopalliance:jar:1.0
[DEBUG] Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.0.0.M2a
[DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG] Included: org.apache.httpcomponents:httpclient:jar:4.5.2
[DEBUG] Included: org.apache.httpcomponents:httpcore:jar:4.4.13
[DEBUG] Included: com.google.http-client:google-http-client:jar:1.22.0
[DEBUG] Included: com.google.code.findbugs:jsr305:jar:1.3.9
[DEBUG] Included: com.google.http-client:google-http-client-gson:jar:1.22.0
[DEBUG] Included: com.google.code.gson:gson:jar:2.1
[DEBUG] Included: org.slf4j:slf4j-log4j12:jar:1.6.6
[DEBUG] Included: log4j:log4j:jar:1.2.17
[DEBUG] Included: org.eclipse.jgit:org.eclipse.jgit:jar:3.3.2.201404171909-r
[DEBUG] Included: com.jcraft:jsch:jar:0.1.50
[DEBUG] Included: com.googlecode.javaewah:JavaEWAH:jar:0.7.9
[DEBUG] Included: com.googlecode.json-simple:json-simple:jar:1.1.1
[DEBUG] Included: junit:junit:jar:4.10
[DEBUG] Included: org.hamcrest:hamcrest-core:jar:1.1
[DEBUG] Included: org.springframework:spring-core:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-jcl:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-context:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-aop:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-beans:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-expression:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework:spring-web:jar:5.2.5.RELEASE
[DEBUG] Included: org.springframework.security:spring-security-crypto:jar:4.2.9.RELEASE
[DEBUG] Included: cglib:cglib:jar:2.2.2
[DEBUG] Included: asm:asm:jar:3.3.1
[DEBUG] Included: com.auth0:java-jwt:jar:3.1.0
[DEBUG] Included: org.bouncycastle:bcprov-jdk15on:jar:1.55
[DEBUG] Included: commons-io:commons-io:jar:2.7
[DEBUG] Included: org.apache.commons:commons-lang3:jar:3.1
[DEBUG] Included: commons-codec:commons-codec:jar:1.10
[DEBUG] Included: net.javacrumbs.json-unit:json-unit:jar:2.7.0
[DEBUG] Included: net.javacrumbs.json-unit:json-unit-core:jar:2.7.0
[DEBUG] Included: org.opentest4j:opentest4j:jar:1.1.1
[DEBUG] Included: com.fasterxml.jackson.core:jackson-core:jar:2.11.0.rc1
[DEBUG] Included: com.fasterxml.jackson.core:jackson-databind:jar:2.11.0.rc1
[DEBUG] Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.11.0.rc1
[DEBUG] Configuring mojo com.apigee.edge.config:apigee-config-maven-plugin:1.4.6:specs from plugin realm ClassRealm[plugin>com.apigee.edge.config:apigee-config-maven-plugin:1.4.6, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
[DEBUG] Configuring mojo 'com.apigee.edge.config:apigee-config-maven-plugin:1.4.6:specs' with basic configurator -->
[DEBUG] (f) apiVersion = v1
[DEBUG] (f) artifactId = cmp_GIES_Boomi_PowerAutomate
[DEBUG] (f) authType = oauth
[DEBUG] (s) baseDirectory = D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate
[DEBUG] (f) buildDirectory = D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\target
[DEBUG] (f) deploymentEnv = dev
[DEBUG] (f) hostURL = https://cmp-companies-nonprod.apigee.com
[DEBUG] (s) id = dev
[DEBUG] (s) ignoreProductsForApp = false
[DEBUG] (s) kvmOverride = true
[DEBUG] (s) options = create
[DEBUG] (f) orgName = cmp-non-prod
[DEBUG] (f) password = ********
[DEBUG] (f) project = MavenProject: Apigee:cmp_GIES_Boomi_PowerAutomate:1.0 @ D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\pom.xml
[DEBUG] (f) projectName = cmp_GIES_Boomi_PowerAutomate
[DEBUG] (f) projectVersion = 1.0
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@3670f00
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@c7a977f
[DEBUG] (s) skip = false
[DEBUG] (f) tokenURL = https://cmp-companies-nonprod.login.apigee.com/oauth/token
[DEBUG] (f) userName = anoop.saxena@cmp.com
[DEBUG] -- end configuration --
[INFO] ************************************************************************
[INFO] Apigee Specs
[INFO] The APIs used in this goal are preliminary and subject to change without notice!!
[INFO] ************************************************************************
[DEBUG] Build option create
[DEBUG] Base dir D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate
[INFO] Retrieving config from D:\Jenkins\workspace\Integration\non-prod\testJobs\deployment-test\cmp_GIES_Boomi_PowerAutomate\edge.json
[INFO] Retrieving existing Specs
[INFO] Acquiring mgmt API token from https://cmp-companies-nonprod.login.apigee.com/oauth/token
[INFO] MFA token not provided. Skipping.
[DEBUG] HTTP POST https://cmp-companies-nonprod.login.apigee.com/oauth/token
[DEBUG] Accept=[text/plain, application/json, application/*+json, */*]
[DEBUG] Writing [{username=[anoop.saxena@cmp.com], password=[********], grant_type=[password]}] as "application/x-www-form-urlencoded"
[DEBUG] Response 401 UNAUTHORIZED
2021-11-25 11:00:51 ERROR MgmtAPIClient:163 - 401 Unauthorized: [no body]
[ERROR] 401 Unauthorized: [no body]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.232 s
[INFO] Finished at: 2021-11-25T11:00:51-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.apigee.edge.config:apigee-config-maven-plugin:1.4.6:specs (create-config-specs) on project cmp_GIES_Boomi_PowerAutomate: Apigee network call error 401 Unauthorized: [no body] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.apigee.edge.config:apigee-config-maven-plugin:1.4.6:specs (create-config-specs) on project cmp_GIES_Boomi_PowerAutomate: Apigee network call error 401 Unauthorized: [no body]
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoFailureException: Apigee network call error 401 Unauthorized: [no body]
at com.apigee.edge.config.mavenplugin.SpecsMojo.doUpdate (SpecsMojo.java:240)
at com.apigee.edge.config.mavenplugin.SpecsMojo.execute (SpecsMojo.java:278)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]

0 1 341
1 REPLY 1

Resolved the 401 error using machine user.

Now, I'm getting 503 error, opening a new post as this issue looks different.

Thanks .