I'm running the command replacing the values of user, password, organization, environment and firebase-hostname:
node setup -u apigee-username -p apigee-password -o apigee-org -e apigee-environment -f firebase-hostname
I'm getting build failure:
Modified files:
[INFO] Scanning for projects...
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building edge-developer-training-backend v1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building edge-developer-training-idp v1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ edge-developer-training-backend ---
[INFO] Deleting /Users/user/Downloads/setup/edge-developer-training-backend/target
[INFO]
[INFO] --- jshint-maven-plugin:1.6.0:lint (jslint) @ edge-developer-training-backend ---
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ edge-developer-training-idp ---
[INFO] Deleting /Users/user/Downloads/setup/edge-developer-training-idp/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources (default) @ edge-developer-training-idp ---
[INFO] using jshint version 2.5.6
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- apigee-edge-maven-plugin:1.1.6:configure (configure-bundle) @ edge-developer-training-idp ---
[INFO] No config.json found. Skipping package configuration.
[INFO]
=============Checking for node.js app================
[INFO]
=============Now zipping the App Bundle================
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ edge-developer-training-idp ---
[INFO] Installing /Users/user/Downloads/setup/edge-developer-training-idp/pom.xml to /Users/user/.m2/repository/apigee/edge-developer-training-idp/v1/edge-developer-training-idp-v1.pom
[INFO]
[INFO] --- apigee-edge-maven-plugin:1.1.6:deploy (deploy-bundle) @ edge-developer-training-idp ---
[INFO]
=============Initializing Maven Deployment================
[INFO]
=============Importing App================
[INFO] /Users/user/Downloads/setup/edge-developer-training-backend/apiproxy/resources/jsc/AddProductNameToURI.js
[INFO] /Users/user/Downloads/setup/edge-developer-training-backend/apiproxy/resources/jsc/FormatLikeBaaS.js
[INFO] /Users/user/Downloads/setup/edge-developer-training-backend/apiproxy/resources/jsc/ProductAvailability.js
[INFO] /Users/user/Downloads/setup/edge-developer-training-backend/apiproxy/resources/jsc/UpdateTargetUrl.js
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources (default) @ edge-developer-training-backend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 25 resources
[INFO]
[INFO] --- apigee-edge-maven-plugin:1.1.6:configure (configure-bundle) @ edge-developer-training-backend ---
[INFO]
Request prepared for the server
**************************
POSThttps://api.enterprise.apigee.com/v1/organizations/egutierrez-eval/apis?action=import&name=edge-developer-training-idp
accept: application/json
accept-encoding: gzip
authorization: Basic [Not shown in log]
content-type: application/octet-stream
[Request body contains data, not shown]
[INFO] ============= Reading the config file located at ================
/Users/user/Downloads/setup/edge-developer-training-backend/config.json
[INFO]
=============Checking for node.js app================
[INFO]
=============Now zipping the App Bundle================
[INFO]
[INFO] --- apigee-config-maven-plugin:1.2.1:caches (create-config-cache) @ edge-developer-training-backend ---
[ERROR] 401 Unauthorized
[ERROR]
* * * * * * * * * * *
This deployment could have failed for a variety of reasons.
* * * * * * * * * * *
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.696 s
[INFO] Finished at: 2018-03-28T14:25:42-07:00
[INFO] ************************************************************************
[INFO] Apigee Cache
[INFO] ************************************************************************
[INFO] No cache config found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.2.1:targetservers (create-config-targetserver) @ edge-developer-training-backend ---
[INFO] ************************************************************************
[INFO] Apigee Target Servers
[INFO] ************************************************************************
[INFO] Retrieving existing environment Target Servers - test
[INFO] Final Memory: 13M/213M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.6:deploy (deploy-bundle) on project edge-developer-training-idp: : MojoExecutionException: 401 Unauthorized -> [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
(node:35834) UnhandledPromiseRejectionWarning: #<Object>
(node:35834) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:35834) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[INFO]
Request prepared for the server
**************************
GEThttps://api.enterprise.apigee.com/v1/organizations/egutierrez-eval/environments/test/targetservers
accept: application/json
accept-encoding: gzip
authorization: Basic [Not shown in log]
[ERROR] 401 Unauthorized
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.722 s
[INFO] Finished at: 2018-03-28T14:25:43-07:00
[INFO] Final Memory: 22M/323M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.apigee.edge.config:apigee-config-maven-plugin:1.2.1:targetservers (create-config-targetserver) on project edge-developer-training-backend: Apigee network call error 401 Unauthorized -> [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/MojoFailureException
(node:35834) UnhandledPromiseRejectionWarning: #<Object>
(node:35834) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
I've double check my credentials and look good. Also I was able to execute management API using the same credentials and worked correctly.
This are the versions installed on my machine:
Apache Maven 3.5.3
Node.js v8.11.0
Java 8
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |