摘要:[JAVA] Maven Dependency include JAR 相依錯誤
最近在玩GAE 時,在Maven中需要include appengine-api-1.0-sdk
這支jar主要也是執行google appengine的JAR ,
此時會跳出說repository 中的 appengine-api-1.0-sdk-xxx.jar not a valid location
The App Engine SDK '/Users/eric/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.9.17/appengine-api-1.0-sdk-1.9.17.jar' on the project's build path is not valid (SDK location '/Users/eric/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.9.17/appengine-api-1.0-sdk-1.9.17.jar' is not a directory)
最後才發現是java的build path maven中的jar應該是之後於gae server 上使用,local還是以app engine sdk的為主
所以調整一下build path: project->build path->configure bulid path->order and export -> maven dependencys to bottom
可以解決這類相依錯誤的問題