简体   繁体   English

如何使用Java的最新App Engine SDK(使用Maven或Eclipse)?

[英]How can i use the newest app engine sdk for java (with maven or eclipse)?

I wanted to start using GAE with Java but i am still struggling with the tooling. 我想开始将GAE与Java结合使用,但我仍在努力使用该工具。

My first try was using Eclipse with the "Google Plugin for Eclipse". 我的第一个尝试是将Eclipse与“ Google Eclipse插件”结合使用。 I got it running, but when debugging i get the information, that my sdk is outdated. 我让它运行,但是在调试时我得到的信息是我的SDK已过时。 So i ask myself, how i can update the SDK on my own. 所以我问自己,我如何可以自己更新SDK。 Furthermore i have the feeling, this is no more the way to go because the Pluging/SDK is not updated anymore and there are many hints for IntelliJ as IDE to choose. 此外,我有种感觉,这不再是可行的方式,因为Plug / SDK不再更新,并且有很多提示可供选择,IntelliJ作为IDE。

So i went on with the documentation and found the maven-way. 因此,我继续阅读文档,找到了行之有效的方法。 Set everything up again and getting also an information, that the sdk is out of date, when i run mvn appengine:devserver 当我运行mvn appengine:devserver时,再次设置一切并获取信息,表明sdk已过期。

[INFO] There is a new version of the SDK available.
[INFO] -----------
[INFO] Latest SDK:
[INFO] Release: 1.9.46
[INFO] Timestamp: Wed Oct 19 03:22:06 CEST 2016
[INFO] API versions: [1.0]
[INFO]
[INFO] -----------
[INFO] Your SDK:
[INFO] Release: 1.9.22
[INFO] Timestamp: Sat Jul 11 00:55:48 CEST 2015
[INFO] API versions: [1.0]

When i check the pom.xml i can see a reason for it: 当我检查pom.xml时,我可以看到一个原因:

<appengine.sdk.version>1.9.24</appengine.sdk.version>

But these versions dont match and just increasing version number doesnt work because maven wont find the repositories. 但是这些版本不匹配,仅增加版本号是行不通的,因为maven不会找到存储库。

So again i ask myself, if the documentaion is still the way to go. 因此,我再次问自己,是否仍然可以进行文献记录。

Next way i tried then is using "gcloud" command-line tools, but i am now at a point again where i miss documentation. 我当时尝试的下一种方法是使用“ gcloud”命令行工具,但现在我又错过了文档。

So my question is, how i can i use the current SDK? 所以我的问题是,我如何使用当前的SDK?

What is the "best tooling" at the moment to start developing java gae apps, as all my tries till now seem to be outdated. 目前开始开发Java gae应用程序的“最佳工具”是什么,因为到目前为止我的所有尝试似乎都已过时。 Ant? 蚂蚁? Maven? Maven的? Eclipse? 日食? IntelliJ? 的IntelliJ? AndroidStudio? AndroidStudio?

Thank you for any help! 感谢您的任何帮助!

The latest version is 1.9.46 as of 8-Nov-2016. 截至2016年11月8日,最新版本为1.9.46。 You can check this page 您可以检查此页面

For accessing using Maven, use this code 要使用Maven进行访问,请使用以下代码

<!-- https://mvnrepository.com/artifact/com.google.appengine/appengine-api-1.0-sdk -->
<dependency>
    <groupId>com.google.appengine</groupId>
    <artifactId>appengine-api-1.0-sdk</artifactId>
    <version>1.9.44</version>
</dependency>

You can keep a watch on this page 您可以在此页面上观看

Additionally, I am also experimenting GAE with Maven in Eclipse. 此外,我还在Eclipse中使用Maven进行GAE实验。 Hope, we can discuss to get a fruitful result. 希望我们可以商讨取得丰硕的成果。 You can get in touch me at aponmyway@gmail.com 您可以通过aponmyway@gmail.com与我联系。

Have a look at Jello Framework . 看看Jello Framework It is a Java framework for GAE (Disclaimer - I am the author). 这是GAE的Java框架(免责声明-我是作者)。

You can try the Getting started guide which will get you up and running in eclipse in less then 30 minutes. 您可以尝试使用入门指南 ,该指南将使您在不到30分钟的时间里开始和运行Eclipse。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我们如何使用适用于Eclipse的新Google Cloud Plugin更新App Engine Java SDK? - How can we update the App Engine Java SDK Using the New Google Cloud Plugin for Eclipse? 如何更改 Eclipse 上的 SDK 应用引擎 - How do I change the SDK app engine on Eclipse 如何在使用GAE Maven插件时在IDEA中调试Java Google App Engine应用程序? - How can I debug a Java Google App Engine app in IDEA while using the GAE Maven plugin? 与App Engine Java一起使用哪个版本的Eclipse? - which version of eclipse to use with app engine java? 如何在Eclipse中重新启动Google App Engine Java Server? - How do I restart the Google App Engine Java Server in Eclipse? 如何使用Maven for App Engine设置Java Eclipse(Juno)动态Web项目 - How to setup a Java Eclipse (Juno) dynamic web project with Maven for App Engine 如何使用pom.xml / Maven在Eclipse中初始化本地思想站点(App Engine示例)项目? - How to use pom.xml/Maven to initialize a local thoughtsite (App Engine sample) project in Eclipse? 如何将maven版本2.x更新到最新版本? - How can I update maven version 2.x to a newest version? 如何在最新版本 eclipse 中找到(.class)文件? - How can I find (.class) file in newest version eclipse? 如何使用Maven下载的软件包来使eclipse使用? - How can I make eclipse make use of packages downloaded by maven?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM