This repository provides a template for a QBiC Liferay Vaadin Portlet based on Maven.
Create a new repository on Github. You can find a description of it here.
- Open the terminal and clone the template repo
git clone --bare git@github.com:qbicsoftware/template_qbicportlet.git
- Then mirror-push it to the new repository
cd template_qbicportlet.git
git push --mirror https://github.com/qbicsoftware/my_first_portlet.git
- Remove the just created temporary local repository
cd ..
rm -rf template_qbicportlet.git
- Clone new repository
git clone https://github.com/qbicsoftware/my_first_portlet.git
To personalize your portlet there are a few files you need to change. Expressions beginning with an '$' need to be replaced by your own definitions:
- liferay-display.xml
<category name="Portlets">
<portlet id="$PORTLET_ID" />
</category>
- liferay-plugin-package.properties
name=$PORTLET_ID
short-description=$DESCRIPTION
author=$AUTHOR
- liferay-portlet.xml
<portlet>
<portlet-name>$PORTLET_ID</portlet-name>
</portlet>
- portlet.xml
<portlet>
<description>$DESCRIPTION</description>
<portlet-name>$PORTLET_ID</portlet-name>
<display-name>$PORTLET_ID</display-name>
<!-- Just needs to be changed if you change the path to your main UI class or its name--->
<init-param>
<name>UI</name>
<value>life.qbic.$MAIN_UI</value>
</init-param>
<portlet-info>
<title>$PORTLET_ID</title>
<short-title>$PORTLET_ID</short-title>
<keywords>Vaadin 7</keywords>
</portlet-info>
</portlet>
- web.xml
<display-name>$PORTLET_ID</display-name>
- pom.xml
<artifactId>$ARTIFACT_ID</artifactId>
<version>1.0</version>
<name>$PORTLET_ID</name>