Issue
- I made some changes (e.g. a hint) to the portlet-model-hints.xml file under my project's service builder folder and I am now running the
mvn clean generate-resources
command. If I run this command from within the service folder, the modification is kept, but if I run it from the root folder of the maven project, the portlet-model-hints.xml will be replaced by a new file an the change is gone.
Environment
- Maven
Resolution
- Make sure you have a line like this in your pom.xml:
<mergeModelHintsConfigs>${project.basedir}/src/main/resources/META-INF/portlet-model-hints.xml
</mergeModelHintsConfigs>
Additional Information
- https://issues.liferay.com/browse/LPS-75420?focusedCommentId=1394562&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1394562
- https://liferay.dev/ask/questions/development/hints-in-portlet-model-hints-xml-are-overriten-when-i-run-mvn-service-build-1