1
votes

Why does system retrieve Google App Engine Java SDK from Maven everytime I run mvn appengine:devserver in new project? This process takes a lot of time because of large size. Moreover I have already downloaded Google App Engine Java SDK. I have added the <sdk>/bin

in PATH environment variable.

Following are the messages in my terminal.

[INFO]

[INFO] <<< appengine-maven-plugin:1.8.7:devserver (default-cli) @ project-ear <<<

[INFO]

[INFO] --- appengine-maven-plugin:1.8.7:devserver (default-cli) @ project-ear ---

[INFO]

[INFO] Google App Engine Java SDK - Running Development Server

[INFO]

[INFO] Retrieving Google App Engine Java SDK from Maven Downloading: http://repo.maven.apache.org/maven2/com/google/appengine/appengine-java-sdk/1.8.7/appengine-java-sdk-1.8.7.zip

2

2 Answers

2
votes

Before starting the server, pom.xml in the main application directory should be modified so that inside the element points to the installed App Engine SDK version.

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<appengine.target.version>1.9.5</appengine.target.version>
</properties>

In the above code, version is to be mentioned in the <appengine.target.version> tag.

1
votes

If you have already downloaded the SDK zip file install it to maven as following. Change file name and version as required.

mvn install:install-file -Dfile=appengine-java-sdk-1.9.36.zip -DgroupId=com.google.appengine
    -DartifactId=appengine-api-1.0-sdk -Dversion=1.9.36 -Dpackaging=zip