Migrating from Vaadin 6 to 7


I’m pretty fresh to vaadin and started coding with maven and intellij which works fine until I realized I use Vaadin 6.8.2
Maybe someone could give me some tipps on how to get a newer version of vaadin running.

I run this on a jetty server so starting with “package jetty:run” as maven commands packages me a war, explode it and runs jetty. Is there something to change?

package jetty:run Also here are my pom.xml


<?xml version="1.0" encoding="UTF-8"?>

Vaadin Web Application

UTF-8 6.8.2 2.3.0 2.2.0 org.apache.maven.plugins maven-compiler-plugin 1.5 1.5
  <!-- A simple Jetty test server at http://localhost:8080/samir can be launched with the Maven goal jetty:run 
    and stopped with jetty:stop -->
      <!-- Redeploy every x seconds if changes are detected, 0 for no automatic redeployment -->
      <!-- make sure Jetty also finds the widgetset -->
        <baseResource implementation="org.mortbay.resource.ResourceCollection">
          <!-- Workaround for Maven/Jetty issue http://jira.codehaus.org/browse/JETTY-680 -->
          <!-- <resources>src/main/webapp,${project.build.directory}/${project.build.finalName}</resources> -->
vaadin-snapshots http://oss.sonatype.org/content/repositories/vaadin-snapshots/ false true vaadin-addons http://maven.vaadin.com/vaadin-addons com.vaadin vaadin ${vaadin.version} org.xerial sqlite-jdbc 3.7.2 [/code]And here is my web.xml


<?xml version="1.0" encoding="UTF-8"?> Vaadin Web Application Vaadin production mode productionMode false Vaadin Application Servlet com.vaadin.terminal.gwt.server.ApplicationServlet Vaadin application class to start application com.example.myapp.MainApplication Vaadin Application Servlet /* [/code]I also got a context.xml which I'm not sure on howe to use yet
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/myapp"/>

My current project structure is

| pom.xml
| ±–java
| | -–com
| | -–example
| | -–myapp
| | MainApplication.java
| |
| |
| -–webapp
| context.xml
| web.xml


I would suggest making a fresh start with a Vaadin 7.4.x project by running:

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

and copying over your code from the current project.

But if you do feel that you want to convert the project you should have a look at
and refer to it while doing the conversion.