留言板

Liferay7 + maven - model-hints overriden

thumbnail
Alexey Kakunin,修改在7 年前。

Liferay7 + maven - model-hints overriden

Liferay Master 帖子: 621 加入日期: 08-7-7 最近的帖子
Hi!
Trying to develop service builder portlet based in maven for Liferay 7.
Found a problem - even I do any changes in portlet-model-hints.xml - after next liferay:build-services call it returns back.
It may be simply reproduced with Blade-Samples projects - just try to change anything in https://github.com/liferay/liferay-blade-samples/blob/master/maven/blade.servicebuilder.svc/src/main/resources/META-INF/portlet-model-hints.xml and rerun service-builder.

Is something missed in configuration? or it is bug in maven plugin?
thumbnail
Tahir Noor Khaliq,修改在7 年前。

RE: Liferay7 + maven - model-hints overriden

Junior Member 帖子: 35 加入日期: 15-2-5 最近的帖子
Hi, i created n consumed service builder portlet based in maven for Liferay 7. i did not found any issue.
u can view below link.
https://github.com/tahirnoorkhaliq/Liferay7-DXP/tree/master/Liferay7-Practice/portal-aggregator/motogplus-service
thumbnail
Alexey Kakunin,修改在7 年前。

RE: Liferay7 + maven - model-hints overriden

Liferay Master 帖子: 621 加入日期: 08-7-7 最近的帖子
Hi Tahir!
Thank you for answer.
Just get your sources from git (got clone) - and got same issue:

if I'm doing mvn liferay:build-service in motogplus-service-service folder just after getting sources from github - portlet-model-hints.xml replaced with default one - for example max-length hint is removed for com.tahir.motogplusservice.model.Khaliq -> name attribute
thumbnail
Tahir Noor Khaliq,修改在7 年前。

RE: Liferay7 + maven - model-hints overriden

Junior Member 帖子: 35 加入日期: 15-2-5 最近的帖子
yes u r right Alexey Kakunin, i think it is a bug.
thumbnail
Alexey Kakunin,修改在7 年前。

RE: Liferay7 + maven - model-hints overriden

Liferay Master 帖子: 621 加入日期: 08-7-7 最近的帖子
OK, posted bug into jira: https://issues.liferay.com/browse/MAVEN-266