留言板

Module projects disappearing after creating another module

Julian Pfeil,修改在7 年前。

Module projects disappearing after creating another module

Junior Member 帖子: 72 加入日期: 16-3-1 最近的帖子
Liferay IDE 3.0.1

I finished my service builder module project called "product-registration" (containing product-registration-api and -service). Then, in project explorer i did a right click on product-registration and select New -> Liferay Module Project. I did create a mvcportlet called product-registration. After clicking finish the new portlet did not appear within the product-registration folder, but below it (see the pictures).

Also, both (product-registration-api & product-registration-service) disappeared from the product-registration folder, as you can see in the pictures.
But in the Gradle Tasks tab they still appear...

So how do i make the module projects re-appear again?
thumbnail
David H Nebinger,修改在7 年前。

RE: Module projects disappearing after creating another module

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
So the product-registration folder is, technically, already a module so I'm wondering if you're getting a name conflict by trying to create another module with a same name?

If you try creating the sub module using a unique name, does the same problem occur?
Julian Pfeil,修改在7 年前。

RE: Module projects disappearing after creating another module

Junior Member 帖子: 72 加入日期: 16-3-1 最近的帖子
Thank you for the fast answer.

It seems to be a naming conflict. If i reset everything and create a new module project with a name not beginning with product-registration- the problem disappears. Also when i create any module project with the name starting with product-registration-, it disappears again.

Can this be taken for a bug?...

And how do i create a submodule? Because every new module does appear right below the modules-folder and not "below" the product-registration "top"-module.

Kind Regards,
Julian
Julian Pfeil,修改在7 年前。

RE: Module projects disappearing after creating another module (答复)

Junior Member 帖子: 72 加入日期: 16-3-1 最近的帖子
Just found out, that i - indeed- can create the product-registration-web module. But then i have to move it into the product-registration module via the filesystem, because you can't drag&drop in the liferay project explorer.

After moving it into the main module, everything appears correctly in Liferay IDE (after F5 & CTRL+F5)...