Compile And Use Vaadin 6 Addons (2)
Now lets create a new Maven project.
And RightClick -> Properties -> Project Facets -> “Convert to faceted form” -> Select “Dynamic Web Module” and OK.
Now Eclipse adds the WebContent folder. There are META-INF and WEB-INF folders now. We must create these folders:
src/main/webapp/VAADIN/widgetsets/
Eclipse will add the compiled widgetset files to here. Now we must add dependencies and write some code with addon (Invient Chart). I won’t explain how to create it but I will show you the current status of project:
Now open a terminal and go to ~/workspace/vaadinwidgetset/ folder and enter these commands:
$ mvn clean package
$ rm -rf -- /opt/tomcat/webapps/vaadinwidgetset/
$ cp target/vaadinwidgetset-0.0.1-SNAPSHOT.war /opt/tomcat/webapps/vaadinwidgetset.war
And now go to this url (my tomcat configured to http ssl connection. May be yours not):
https://localhost:8443/vaadinwidgetset/
TO BE CONTINUE
0 yorum