Spliting Front-end from Back-office on Maven

淺唱寂寞╮ 提交于 2019-12-08 09:01:42

问题


I've a java ecommerce web-based app. It is written using Spring Roo, so it follows the Domain Driven Design paradigm. The application has two UI. The first is front-end, based on plain jsp/jstl/tiles, it is stable, changes rarely and HAVE to STAY UP and RUNNING. The second is built on Vaadin/GWT, it changes frequently (on Custemer requerements).

My question is how to best structure Maven project such as:

  • Allow deploy (on tomcat) only back-office or front-end UI;
  • Do not duplicate Domain Logic

Thanks


回答1:


Split the domain objects out into a different library from the gui code.

Then have 2 seperate wars both depending on this library.

This is a very standard pattern.



来源:https://stackoverflow.com/questions/5661916/spliting-front-end-from-back-office-on-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!