简体   繁体   English

Liferay Maven服务构建器Portlet(开发人员工作室)

[英]Liferay Maven Service Builder Portlet(Developer Studio)

I am new in Liferay platform. 我是Liferay平台的新手。 I am trying to implement CRUD in Liferay using portlet. 我正在尝试使用portlet在Liferay中实现CRUD。 I am using liferay 6.2 and IDE as a developer studio. 我使用liferay 6.2和IDE作为开发人员工作室。

I am creating project with below values (In Image) in developer studio. 我正在开发人员工作室中创建具有以下值(In Image)的项目。

在此输入图像描述

When I am creating project in Developer studio I am getting 3 project in my Liferay project explorer which are shown in below image. 当我在Developer studio中创建项目时,我在Liferay项目资源管理器中获得了3个项目,如下图所示。

在此输入图像描述

So my question is that why its three project are created when I only want to create one service builder portlet. 所以我的问题是,当我只想创建一个服务构建器portlet时,为什么要创建它的三个项目。 What are the use of that? 有什么用?

Anyone can help? 有人可以帮忙吗?

So this is what Liferay with Maven does: It creates a Parent Project (BookServicePortlet). 所以这就是Liferay与Maven的关系:它创建了一个父项目(BookServicePortlet)。 Liferay assumes, if you want to build a service layer, you also will implement a portlet where you access the Services generated. Liferay假设,如果要构建服务层,您还将实现一个portlet,您可以在其中访问生成的服务。 So that's why Liferay-Maven is creating 2 SubProjects in your parent project. 这就是为什么Liferay-Maven在你的父项目中创建2个SubProjects的原因。 One for the service, and one for Web-Tier. 一个用于服务,一个用于Web-Tier。 This is done, so that you can distribute your service layer to other portlets without distributing all your front-end code. 这样做,以便您可以将服务层分发到其他portlet,而无需分发所有前端代码。 If you don't have a front-end (and I doubt that ;) ) you could just leave all blank in BookServicePortlet-portlet. 如果你没有前端(我怀疑;))你可以在BookServicePortlet-portlet中留空。

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

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