简体   繁体   中英

Error using maven-gae and google plugin for eclipse (GPE)

I read the the last GPE integrated well with maven projects.

So I create a maven project from cmd line using the maven-gae-plugin.

Then imported into eclipse as a maven project.

However when I run it as "Web Application" (GPE) it fails with this error:

Unable to discover the Google App Engine SDK root but was instead loaded from file:/Users/neo/.m2/repository/com/google/appengine/appengine-tools-sdk/1.6.6/appengine-tools-sdk-1.6.6.jar. Specify -Dappengine.sdk.root to override the SDK location.

In project's Properties -> Google -> Google App Engine, I've the sdk point to /Users/neo/.m2/repository/com/google/appengine/appengine-java-sdk/1.6.6/appengine-java-sdk-1.6.6 (which is a valid sdk directory).

What I am doing wrong?

We also ran in the this problem. It seems to be a class loading problem. Simply move tools up on the list so it loads first.

  1. Go to Run -> Run Confiurations ...
  2. Select your app under " Web Application "
  3. Click " Classpath " tab
  4. highlight the appengine-tools jar and choose " Up " so it moves above your project.

Unzip the file appengine-tools-sdk-1.6.6.jar and it will create a folder appengine-tools-sdk-1.6.6

It will work if you put the following in VM arguments in your run configuration

-Dappengine.sdk.root=/Users/neo/.m2/repository/com/google/appengine/appengine-tools-sdk/1.6.6/appengine-tools-sdk-1.6.6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM