1

我的应用程序需要提供这样的 servlet:

serve("_ah/admin/datastore*").with(DatastoreViewerServlet.class); 

但是,它DatastoreViewerServlet位于我机器中的运行时 sdk 中:

some_path/lib/shared/appengine-local-runtime-shared.jar

那么当我运行我的应用程序时如何加载这个jar。我正在使用 Maven,当我运行我的应用程序时,我只是这样做mvn gwt:run

4

1 回答 1

2

您可以在依赖标签中使用 systemPath 标签。请尝试以下方法。

<dependency>
  <groupId>com.google.gae</groupId>
  <artifactId>appengine-local-runtime-shared</artifactId>
  <scope>system</scope>
  <systemPath>some_path/lib/shared/appengine-local-runtime-shared.jar</systemPath>
</dependency>
于 2013-05-17T04:28:41.810 回答