Trying to start using maven

As a direct result of your recent blog about vaadin and maven I decided to try and build a new project with maven with a view to converting my vaadin projects.

I decided to try and build a simple Hello World type application and then once that was working to add a vaadin add-in which was going to be “ConfirmDialog”.

So I built a project with the following parameters:

mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=LATEST

I then did: mvn install which seemed to work OK (Build Success).

If I do mvn jetty:run then I can run the application in my browser. However, I am unsure how to run on Tomcat and how to invoke commands from within eclipse rather than from the command line.

I get the attached error when I try and run in tomcat.

How do I supply goals to the RunAs Mavin commands within eclipse?

Thanks a lot.

Since I struggled with this, I’ve posted a blog entry that may help others with the same problem: