Which plugin for Maven App Engine to use?

I’ve been working with the Google App Engine recently and stumbled upon a mystery for me, maybe you can clarify.

According to some google sites ( https://cloud.google.com/appengine/docs/java/tools/maven ) you should use

<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${appengine.maven.plugin.version}</version>
</plugin>

and according to some other pages ( https://cloud.google.com/appengine/docs/java/tools/maven-reference ) you should use

<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.1.0-beta</version>
</plugin>

Now I'm really confused about what I should use. Why are there two versions in the first place?

The problem I am facing:

Both seem to support different goals. One supports deployment, etc., while the other supports updating and update_cron.

3 , - ?

, - .

+4
2
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${appengine.maven.plugin.version}</version>
</plugin>

( ) appcfg ( Java SDK).

, App Engine, dev- , , cron, , ,...

<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.1.0-beta</version>
</plugin>

, -. GCloud SDK .

Maven Central, - 1.0.0, 1.1.0-beta

: dev-server deploy, GCloud SDK.

2 appcfg, (, , cron, indexes,...), .

, Google Cloud Endpoints appcfg one

, 2 . , ().

:

  • com.google.cloud.tools:appengine-maven-plugin:run
  • com.google.appengine:appengine-maven-plugin:devserver

  • appengine:run
  • appengine:devserver

, Maven groupId ( artifactId )

, appcfg.

, , GCloud ( , appcfg), cron/queues, , ,

, GCloud, GCloud, ( ) .

, : ` gcloud app deploy` vs. `appcfg.py`

+5

:

com.google.appengine groupId

com.google.cloud.tools groupId

, artifactId (appengine-maven-plugin), -. , Google. SDK , , / ..

+1

Source: https://habr.com/ru/post/1660910/


All Articles