Run/Debug a project created by maven in eclipse using "Run on Server"

Hi all,
I created maven project using


mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.0.0.beta4 -DgroupId=swr -DartifactId=vaadinTest -Dversion=1.0 -Dpackaging=war

then in Eclipse I imported it via „Import existing maven projects“. First thing what I noticed the project contained no facets and I had to add them manually.
Now I can start the project using mvn tomcat:run (or tomcat:start) and it runs perfectly but if I try to start it with right click on project Run as → Run on Server it fails to start.
The problem is that WEB-INF/lib contains no libraries in directory .metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\vaadinTest
What went wrong with project creating and how I get it started?

Steps to fix the problem:

  1. convert your project to facets: add Dynamic Web Module 3.0
  2. Delete WebContent directory created by Eclipse on step 1
  3. On “Deploy Assembly” page in Settings remove WebContent, add src/main/webapp and add maven dependencies.
  4. Execute mvn vaadin:compile
    5 Refresh src/main/webapp folder

That’s all now you can start you application via Run as → Run on Server