GoogleCloudPlatform / gcloud-maven-plugin

Cloud SDK Maven Plugin for Google App Engine (Managed VMs and non Managed VMs)
Apache License 2.0
29 stars 24 forks source link

"Cannot determine the default location of the Google Cloud SDK" w/ deb package #98

Open epall opened 8 years ago

epall commented 8 years ago

I installed the Google Cloud SDK for Ubuntu by following the Ubuntu Quickstart. This installed the SDK to /usr/lib/google-cloud-sdk. When I ran "mvn gcloud:deploy", it failed with the error message "Cannot determine the default location of the Google Cloud SDK" and a reference to "/usr/local/share/google/google-cloud-sdk". Looks like the code in Utils.java expects me to follow the "Quickstart for Linux" and extract the tarball in my home directory.

This creates a pretty poor initial experience for an Ubuntu/Debian user: they follow the instructions and wind up with a non-working installation, then have to go chase down this gcloud_directory thing, only to discover that installing components is disabled and they shouldn't have done it that way in the first place.

ludoch commented 8 years ago

You can use for now the gcloud_directory parameter described in the README at https://github.com/GoogleCloudPlatform/gcloud-maven-plugin.

Is is already woking with the new Cloud SDK maven plugin? This one will be deprecated in the future.

ludoch commented 8 years ago

A fix will be in the next release.

ghost commented 6 years ago

Im having a similar issue on windows, I've added to the pom file, I have the java engine installed and google cloud sdk installed and added to the path variable.... Any thoughts why it might not be working? @ludoch any help much appreciated