Comments (5)
Not a bug... You did not configure correctly the default credential via gcloud auth login or
Maybe the json file is in a different location than the default expected location which is:
~/.config/gcloud/application_default_credentials.json
?
from appengine-maven-plugin.
Thanks. Note: gcloud auth login
gives a warning on a GCE instance. It gets credentials from the Metadata server, which is a bit different than other platforms.
I was able to work around this by copying a service account key to the instance and using the --service_account_json_key_file=PATH
argument to appcfg.
mvn clean appengine:update -Dappengine.additionalParams="--service_account_json_key_file=${HOME}/my-key.json" -Dap
pengine.appId=my-project -Dappengine.version=sometests
from appengine-maven-plugin.
I still think googledefaultcredential should work on GCE OOB and find the
correct info from the metadata server...
Surprised it did not work!
On Fri, May 13, 2016 at 4:46 PM, Tim Swast [email protected] wrote:
Thanks. Note: gcloud auth login gives a warning on a GCE instance. It
gets credentials from the Metadata server, which is a bit different than
other platforms.I was able to work around this by copying a service account key to the
instance and using the --service_account_json_key_file=PATH argument to
appcfg.mvn clean appengine:update -Dappengine.additionalParams="--service_account_json_key_file=${HOME}/my-key.json" -Dap
pengine.appId=my-project -Dappengine.version=sometests—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#75 (comment)
from appengine-maven-plugin.
At the very least, it's a bug that there is no error message, right?
from appengine-maven-plugin.
I filed a bug internally for this issue. I tested today on Cloud Shell, and --use_google_application_default_credentials
has the same issue there (no deploy, but no error message). No configuration should be necessary on Cloud Shell.
swast@tensile-octagon-135519:~/src/tensile-octagon-135519/java_gae_quickstart$ mvn clean appengine:update -Dappengine.additionalParams='--use_google_application_default_c
redentials' -Dappengine.appId=tensile-octagon-135519 -Dappengine.version=1
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building appengine-try-java 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appengine-try-java ---
[INFO] Deleting /home/swast/src/tensile-octagon-135519/java_gae_quickstart/target
[INFO]
[INFO] >>> appengine-maven-plugin:1.9.38:update (default-cli) > package @ appengine-try-java >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ appengine-try-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/swast/src/tensile-octagon-135519/java_gae_quickstart/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ appengine-try-java ---
[INFO] Compiling 1 source file to /home/swast/src/tensile-octagon-135519/java_gae_quickstart/target/appengine-try-java/WEB-INF/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ appengine-try-java ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/swast/src/tensile-octagon-135519/java_gae_quickstart/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ appengine-try-java ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ appengine-try-java ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) @ appengine-try-java ---
[INFO] Packaging webapp
[INFO] Assembling webapp [appengine-try-java] in [/home/swast/src/tensile-octagon-135519/java_gae_quickstart/target/appengine-try-java-1.0]
[INFO] Processing war project
[INFO] Copying webapp webResources [/home/swast/src/tensile-octagon-135519/java_gae_quickstart/src/main/webapp/WEB-INF] to [/home/swast/src/tensile-octagon-135519/java_ga
e_quickstart/target/appengine-try-java-1.0]
[INFO] Copying webapp resources [/home/swast/src/tensile-octagon-135519/java_gae_quickstart/src/main/webapp]
[INFO] Building jar: /home/swast/src/tensile-octagon-135519/java_gae_quickstart/target/appengine-try-java-1.0/WEB-INF/lib/appengine-try-java-1.0.jar
[INFO] Webapp assembled in [174 msecs]
[INFO] Building war: /home/swast/src/tensile-octagon-135519/java_gae_quickstart/target/appengine-try-java-1.0.war
[INFO]
[INFO] <<< appengine-maven-plugin:1.9.38:update (default-cli) < package @ appengine-try-java <<<
[INFO]
[INFO] --- appengine-maven-plugin:1.9.38:update (default-cli) @ appengine-try-java ---
[INFO]
[INFO] Google App Engine Java SDK - Updating Application
[INFO]
[INFO] Retrieving Google App Engine Java SDK from Maven
[INFO] Updating Google App Engine Application
[INFO] Running -A tensile-octagon-135519 -V 1 --oauth2 --use_google_application_default_credentials update /home/swast/src/tensile-octagon-135519/java_gae_quickstart/target/appengine-try-java-1.0
swast@tensile-octagon-135519:~/src/tensile-octagon-135519/java_gae_quickstart$
from appengine-maven-plugin.
Related Issues (20)
- Better integration with CircleCI
- Doesn't work with appengine 1.9.37 HOT 2
- specifying a custom dockerfile in configuration.dockerfile doesn't work for flex deployment
- provide mojo that starts, stops, clean without executing full lifecycle
- All unit tests fail w/ appengine-api-1.0-sdk-1.9.49.jar HOT 11
- update not working with 1.9.49 HOT 4
- Goal 'endpoints_get_discovery_doc' fails to execute on 1.9.49 HOT 3
- GAE deployment: appengine-maven-plugin:1.9.50:endpoints_get_discovery_doc : Null key for a Map not allowed in JSON
- Spring Boot Deploy HOT 1
- Google App Engine (GAE) - Flexible Environment - Jetty Issue HOT 2
- GCLOUD: ERROR: (gcloud.app.deploy) The requested resource already exists. HOT 1
- -Drun.profiles ignored during mvn appengine:deploy
- Getting 403 error but version is getting deployed with 0% traffic HOT 1
- appengine-maven-plugin vs app-maven-plugin HOT 2
- Allow running tasks without forking lifecycle.
- Unable to update app: Failed to generate quickstart-web.xml. HOT 1
- <version> seems to be required in appengine-web.xml to run locally
- Allow setting a specific port for secondary modules/services
- Project configuration is mandatory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appengine-maven-plugin.