I'm trying to create a Vaadin protlet and deploy it on a liferay portal with OSGI. I'm new to this so sorry if its very simple but I don't understand what I'm missing.
OSGi Portlets on Liferay 7 is the tutorial that I found in Vaadin's site.
Tutorial says :
Publishing an OSGi portlet on Liferay 7+ can be done in two ways: using annotations or using properties. Annotating a UI class with @VaadinLiferayPortletConfiguration (available in vaadin-liferay-integration) and making it an OSGi service of type UI is the easiest way to automatically publish the UI as a portlet and configure it to use the correct static resources.
@Theme(MyTheme.THEME_NAME)
@VaadinLiferayPortletConfiguration(name = "Vaadin.Tutorial.1", displayName =
"Vaadin Tutorial App")
@Component(service = UI.class, scope = ServiceScope.PROTOTYPE)
public class MyUI extends UI {
...
}
I created a maven project with vaadin-liferay-integration but Eclipse does not recognize annotations in this tutorial (@VaadinLiferayPortletConfiguration AND @Component ) Does any one have any idea what the problem is?