Liferay Maven服务生成器Portlet(Developer Studio) [英] Liferay Maven Service Builder Portlet(Developer Studio)

查看:97
本文介绍了Liferay Maven服务生成器Portlet(Developer Studio)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Liferay平台的新手.我正在尝试使用Portlet在Liferay中实现CRUD.我正在使用liferay 6.2和IDE作为开发人员工作室.

I am new in Liferay platform. I am trying to implement CRUD in Liferay using portlet. I am using liferay 6.2 and IDE as a developer studio.

我正在Developer Studio中创建具有以下值(在图像中)的项目.

I am creating project with below values (In Image) in developer studio.

当我在Developer Studio中创建项目时,我的Liferay项目浏览器中有3个项目,如下图所示.

When I am creating project in Developer studio I am getting 3 project in my Liferay project explorer which are shown in below image.

所以我的问题是为什么当我只想创建一个服务构建器portlet时为什么要创建它的三个项目.有什么用?

So my question is that why its three project are created when I only want to create one service builder portlet. What are the use of that?

任何人都可以帮忙吗?

推荐答案

所以这是Liferay with Maven的作用: 它创建一个父项目(BookServicePortlet). Liferay假设,如果您要构建服务层,则还将实现一个Portlet,您可以在其中访问生成的服务.这就是为什么Liferay-Maven在您的父项目中创建2个子项目的原因.一种用于服务,另一种用于网络层.这样做是为了使您可以将服务层分发到其他portlet,而无需分发所有前端代码.如果您没有前端(我怀疑;)),则可以在BookServicePortlet-portlet中将所有内容保留为空白.

So this is what Liferay with Maven does: It creates a Parent Project (BookServicePortlet). Liferay assumes, if you want to build a service layer, you also will implement a portlet where you access the Services generated. So that's why Liferay-Maven is creating 2 SubProjects in your parent project. One for the service, and one for Web-Tier. This is done, so that you can distribute your service layer to other portlets without distributing all your front-end code. If you don't have a front-end (and I doubt that ;) ) you could just leave all blank in BookServicePortlet-portlet.

这篇关于Liferay Maven服务生成器Portlet(Developer Studio)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆