简体   繁体   English

如何使用简单的maven项目作为GWT maven项目中的依赖项?

[英]How to use a simple maven project as a dependency in GWT maven project?

I wont to break my GWT project in different layers. 我不会在不同的层次中打破我的GWT项目。 so I have a database layer in maven to manipulate DML operations. 所以我在maven有一个数据库层来操作DML操作。 Now I want to use this layer in my GWT-Maven project. 现在我想在GWT-Maven项目中使用这一层。 if I install this data layer in my local repository like a simple maven project and use it as a dependency. 如果我在本地存储库中安装此数据层,就像一个简单的maven项目,并将其用作依赖项。 is it possible? 可能吗?

  • but as per the convection of gwt, this data layer should be reside in server side. 但是根据gwt的对流,这个数据层应该驻留在服务器端。

Yes it is possible. 对的,这是可能的。 We have done in one of the project that I have worked on. 我们在其中一个项目中完成了我的工作。 As you guys are following layered approach you need to have server layer(middle layer) where you will be having all your rpc service classes to listen async calls from client side. 当你们跟随分层方法时,你需要有服务器层(中间层),你将拥有所有的rpc服务类来监听来自客户端的异步调用。 This service layer will go in server side. 该服务层将进入服务器端。 Then you can call your db api/methods in implementation of this rpc services at server end. 然后,您可以在服务器端调用db api / methods来实现此rpc服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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