liferay-7liferay-ide

Issues with Liferay 7.1 workspace imported from Github


I have cloned my Liferay 7.1 workspace from my Github repository. When I try to get Assistance in Liferay IDE using Control+Space, I get error:

This compilation unit is not on the build path of a java project

This happens on the new module project created in the same workspace(that was cloned from Github). But when I create/import module from my local workspace that was created by Liferay for first time, this issue is not there.

I feel like there is some extra workspace setting that I am not doing in my Github workspace. Like we had to create build.username.properties in the SDK folder for Liferay 6.2. Totally stuck and no solutions anywhere.

I tried fixing Project Build path and Project Facets but did not help.


Solution

  • There were some differences between the workspace that I imported from Github and the one that Liferay was creating on my local. I opened both the workspaces in Beyond Compare. Following are the files that had major differences. I made them same and it started working after Gradle Refresh in Eclipse.