Migrating from Vaadin 6 to 7

Hello,

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

[code]

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


4.0.0
com.example.myapp
MyApp
war
1.0
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 -->
  <plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <version>6.1.24</version>
    <configuration>
      <stopPort>9966</stopPort>
      <stopKey>samir</stopKey>
      <!-- Redeploy every x seconds if changes are detected, 0 for no automatic redeployment -->
      <scanIntervalSeconds>0</scanIntervalSeconds>
      <!-- make sure Jetty also finds the widgetset -->
      <webAppConfig>
        <contextPath>/myapp</contextPath>
        <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> -->
          <resourcesAsCSV>src/main/webapp,${project.build.directory}/${project.build.finalName}</resourcesAsCSV>
        </baseResource>
      </webAppConfig>
    </configuration>
  </plugin>
</plugins>
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

[code]

<?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
|
-–src
±–main
| ±–java
| | -–com
| | -–example
| | -–myapp
| | MainApplication.java
| |
| |
| -–webapp
| -–META-INF
| context.xml
| -–WEB-INF
| web.xml

Hi.

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
https://vaadin.com/wiki/-/wiki/Main/Migrating+from+Vaadin+6+to+Vaadin+7
and refer to it while doing the conversion.