0
votes

I have installed the latest Google Cloud SDK (200.0.0) and Google Cloud Tools on Eclipse Neon.3. The GCloud App Java Extensions have also been installed as below.

enter image description here

It seems the latest Google App Engine SDK 1.9.63 has been installed at: C:\Users{USERNAME}.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.9.63

According to Google App Engine online documentation, I had to download and unzip the SDK (appengine-java-sdk-1.9.63) to a different directory.

I would like to use the SDK that I downloaded but the one in Maven. How can I change the location of the installed Google App Engine SDK in Eclipse?

EDIT: enter image description here

enter image description here

2

2 Answers

1
votes

I would like to clarify a few things:

  • .m2\repository is where Maven customarily caches Maven artifacts. Whenever any Maven projects make use of any JARs, they will generally be cached in that local repository. Since it is just a cache, you can safely delete the repository anytime in general. mvn package, for example, will download and cache necessary JARs again.
  • That said, .m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.9.63 just contains a cached JAR: appengine-api-1.0-sdk-1.6.3-jar. Certainly, you wouldn't call a single JAR "Software Development Kit (SDK)"; I would call it, if I have to, an App Engine API JAR. Also, the JAR might have been cached by someone else than "Google Cloud SDK"; any Maven project that makes use of the classes in the JAR would automatically cache it.
  • "Cloud SDK" is a collection of tools and libraries for Google Cloud development and management.
  • "App Engine SDK for Java" as in https://cloud.google.com/appengine/docs/standard/java/download is another, different collection of tools and libraries for App Engine Java development, which you won't probably need here. The SDK is separate and independent from the Cloud SDK.
  • You don't need to download "App Engine SDK for Java" when using "Cloud Tools for Eclipse" (CT4E). CT4E is Cloud SDK-based and not App Engine SDK-based. Why do you need to manually download the App Engine API JAR? For example, you can add the JAR to your project in Eclipse by Preferences > Java Build Path > Libraries > Add Library > Google Cloud Platform Libraries > App Engine API > Finish.
0
votes

You cannot configure App Engine SDK in Eclipse, you can just configure Google Cloud SDK inside Eclipse Google Cloud Tools.

Google App Engine SDK is a component of the Google Cloud SDK {1} so you can install it this way:

gcloud components install [COMPONENT-ID]

If you are using Java, [COMPONENT-ID] would be app-engine-java.

Good luck!

{1}: https://cloud.google.com/sdk/docs/components