Build from source - liferay 7.1 GA4

thumbnail
Nader Jafari, modified 6 Years ago. Junior Member Posts: 84 Join Date: 8/24/11 Recent Posts
Hi guys
i have been checkout liferay source from github on tag 7.1.GA4 and deploy this with ant all successfully.
but when i start tomcat this message shows in console :
Starting Liferay Community Edition Portal 7.1.2 CE GA3 (Judson / Build 7102 / January 7, 2019)
What is wrong?
thank you.
thumbnail
Jorge Díaz, modified 6 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts
Hi Nader,
For some reason, Liferay version wasn't updated inside ReleaseInfo.java file, see: https://github.com/liferay/liferay-portal/blob/7.1.3-ga4/portal-kernel/src/com/liferay/portal/kernel/util/ReleaseInfo.java
It seems to be a bug.
thumbnail
Jorge Díaz, modified 6 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts
Hi Nader,

After internally asking to Liferay guys, they forgot to update ReleaseInfo.java file before labeling 7.1 ga4 branch in github and in order to speed up Release process, they manually updated it during release procedure.

So if you download compiled Liferay 7.1 ga4, version information is correct, but if you recompile Liferay 7.1 g4 from source code, version is incorrect.
If you want to compile Liferay, you can safely ignore version info, or in case you want to avoid mistakes, you can change ReleaseInfo.java file before compiling Liferay. (just update _VERSION_DISPLAY_NAME constant)
thumbnail
Nader Jafari, modified 6 Years ago. Junior Member Posts: 84 Join Date: 8/24/11 Recent Posts
Hi Jorge
Thank you for the detailed reply :-)
I changed _VERSION_DISPLAY_NAME constant and fixed.
asif aftab, modified 5 Years ago. Regular Member Posts: 123 Join Date: 9/2/13 Recent Posts
I am also trying to compile liferay 7.2.1-ga2. getting so many error on compilation time. Then my one friend said that he compiled liferay source code 7.0.6-ga7 some months ago then I tried that one too but still getting error.My intention is to check filters like absolutredirect, virtualhost, baseauth and servlet class webdav servlet.But failed to compile using ant command.Please help me on this.
Thanks
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
asif aftab:

I am also trying to compile liferay 7.2.1-ga2...
...My intention is to check filters like absolutredirect, virtualhost, baseauth and servlet class webdav servlet...
"Checking filters" should work without compiling everything, right? In order to create a well maintainable server, where you're able to upgrade easily, I'd stick with the stock downloads - that's not to say you must not build from source yourself, but you might be tempted to change some code directly, potentially losing some of those changes in the next upgrade. If you create proper plugins, they'll be separated from the (quite humongous) core source code.
I'm working with Liferay since 2008 and never built it from source.
But if you want to build it and look for someone helping to do so, please be more specific than "failed to compile": Information about your environment, JDK, configuration, the actual error message etc. would help.