I would like to ask you about the best development methods using the Liferay SDK. I have the SDK loaded, Eclipse is ready for me, it works, I can create new portlets and run a local Liferay instance to test it.
Here is my situation - I have all the source code in the Eclipse workspace, at the moment these are only the portlets I'm working on.
Liferay SDK I have a completely different place than the workspace. Let them say ~ / dev / liferay_sdk. The Eclipse workspace is in ~ / workspace.
In the beginning, he did not work like that. Eclipse for some reason cannot find or use the Liferay SDK. When I changed the “Project Verification” in the Eclipse / Liferay configuration to “Ignore”, “Liferay Plugin SDK is invalid”, it started working without problems.
The next problem arises when you have to build a WAR, for example. In the portlet directory in the workspace there is a file called "build.xml". But internally, this refers to another XML file, which should be located in one directory up, and this applies for the most part in relative location, etc.
In short, it assumes that you have portlets, etc. inside the Liferay SDK. Like "~ / dev / liferay_sdk / portlets".
My question is: am I completely wrong, or could you offer me best practices with this?
SDK , .
!