2013-05-16 55 views
1

我的应用程序需要服务这样一个servlet:负载罐子到项目与Maven

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

然而,这DatastoreViewerServlet位于坐落在我的机器上运行时SDK:

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

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

回答

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> 
+0

很酷,看来你以前做过这个吗?你有吗? – xybrek

+0

不要担心我会在工作时标记它 – xybrek

+0

现在我仍然有一个服务与'服务'方法的问题 – xybrek