Search code examples
javaliferayvaadinvaadin7liferay-7

Create and deploy Vaadin 7 Portlet in Liferay 7


With Liferay 6.x it is very easy to develop and deploy some Vaadin 7 portlets. Because of all changes in Liferay 7, my Portlets won't work. I didn't even get a single "Hello World" Vaadin portlet to run.

I've already read the article from "Sampsa Sohlman" (Link), but it won't work with the newest Version of Liferay.

My question: Is there any chance to get an example Vaadin 7 Liferay 7 "Hello World" Portlet?

I'm grateful for every answer!


Solution

  • Liferay's message board thread has now answer for you :)

    https://web.liferay.com/community/forums/-/message_boards/message/76582064

    In a nutshel (copying the most important from the above source) You need to build:

    https://github.com/sammso/vaadin/tree/manifest-fix

    Then you need to build :

    https://github.com/sammso/com.vaadin.liferay

    You can also try older version https://github.com/sammso/com.vaadin.liferay/tree/7.6.7 that is still with old package paths etc. Also https://github.com/sammso/vaadin/tree/manifest-fix is now at https://github.com/vaadin/vaadin and will be released on next version.

    In order to build the current version you need to manually edit the POM.xml Change the following dependency in all the pom.xml that it occurs:

    <dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>portal-service</artifactId>
    <version>${liferay.version}</version>
    <scope>provided</scope>
    </dependency>
    

    to the next.

    <dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>com.liferay.portal.kernel</artifactId>
    <version>2.7.0</version>
    <scope>provided</scope>
    </dependency>