掲示板
[LR 6.2]JSF Portlet with Maven wont deploy with portal-service
7年前 に Michael Gnu によって更新されました。
[LR 6.2]JSF Portlet with Maven wont deploy with portal-service
New Member 投稿: 2 参加年月日: 16/09/30 最新の投稿
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.
7年前 に Neil Griffin によって更新されました。
RE: [LR 6.2]JSF Portlet with Maven wont deploy with portal-service [Solved] (回答)
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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