quarta-feira, 14 de janeiro de 2015

Liferay IDE - How to fix the Ide could not find portal root error

How to fix the Ide could not find portal root error

When you create a liferay plugin with maven build, in the Hook Plugin wizard trying to Add JSP will show a error message:

"ide could not find portal root"

This is because using Maven, instead of Ant, the build will not use the build.username.properties and therefore it will not read the app.server.tomcat.portal.dir attribute with the portal root directory.

How can i fix it?

 To fix this you need to edit the project pom.xml and set the appServerPortalDir attribute value to the portal root directory. For example: C:\cms\liferay\tomcat-7.0.42\webapps\ROOT

Sem comentários:

Enviar um comentário