Forums de discussion
[LR 6.2]JSF Portlet with Maven wont deploy with portal-service
Michael Gnu, modifié il y a 7 années.
[LR 6.2]JSF Portlet with Maven wont deploy with portal-service
New Member Publications: 2 Date d'inscription: 30/09/16 Publications récentes
Hi,
I have this basic JSF Portlet implementation with maven build system.
The portlet and the local deployment process works as expected for a simple dummy page.
When I add
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>portal-service</artifactId>
<version>6.2.5</version>
</dependency>
in order to use:
import com.liferay.portal.model.Role;
import com.liferay.portal.model.User;
the portlet wont deploy anymore. I dont get meaningful error messages - even the catalina.log looks fine to me.
Does anyone know what I could be missing? I am thinking of a version problem or that I have to add some other dependencies.
Some more Details can be found here:
http://pastebin.com/TbZjDzxJ <- tomcat log
http://pastebin.com/qcHfyzMA <- pom.xml
I am using Eclipse Mars2 (Liferay 3.0), liferay-portal-6.2-ce-ga6, liferay-plugins-sdk-6.2,
Feel free to request any more information about this topic.
I have this basic JSF Portlet implementation with maven build system.
The portlet and the local deployment process works as expected for a simple dummy page.
When I add
<dependency>
<groupId>com.liferay.portal</groupId>
<artifactId>portal-service</artifactId>
<version>6.2.5</version>
</dependency>
in order to use:
import com.liferay.portal.model.Role;
import com.liferay.portal.model.User;
the portlet wont deploy anymore. I dont get meaningful error messages - even the catalina.log looks fine to me.
Does anyone know what I could be missing? I am thinking of a version problem or that I have to add some other dependencies.
Some more Details can be found here:
http://pastebin.com/TbZjDzxJ <- tomcat log
http://pastebin.com/qcHfyzMA <- pom.xml
I am using Eclipse Mars2 (Liferay 3.0), liferay-portal-6.2-ce-ga6, liferay-plugins-sdk-6.2,
Feel free to request any more information about this topic.
Neil Griffin, modifié il y a 7 années.
RE: [LR 6.2]JSF Portlet with Maven wont deploy with portal-service [Solved] (Réponse)
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Michael,
I reviewed the pom.xml you mentioned and noticed that you need to add <scope>provided</scope> to the following dependency:
Otherwise, portal-service.jar will end up in WEB-INF/lib inside your war artifact.
Kind Regards,
Neil
I reviewed the pom.xml you mentioned and noticed that you need to add <scope>provided</scope> to the following dependency:
<dependency>
<groupid>com.liferay.portal</groupid>
<artifactid>portal-service</artifactid>
<version>6.2.5</version>
</dependency>
Otherwise, portal-service.jar will end up in WEB-INF/lib inside your war artifact.
Kind Regards,
Neil