Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use two Vaadin versions in a single maven project(Vaadin7 and Vaadin8)

Tags:

java

maven

vaadin

I have a working project with Dropwizard and Vaadin7. I need to use Vaadin8 with the existing environment without removing vaadin7 code. Can I run my project by using Vaadin7 and Vaadin8 both version? As I am new to the Vaadin can anybody help me with some direction about how to solve this issue?

<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-themes</artifactId>
    <version>7.5.10</version>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client-compiled</artifactId>
    <version>7.5.10</version>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client</artifactId>
    <version>7.5.10</version>
</dependency>

This is my current vaadin configuration

like image 919
Swagat Avatar asked Jan 01 '23 02:01

Swagat


1 Answers

You can't use two versions of the same dependency in Maven, it will take the first one.

As far as you are not using COMMUNITY ADD-ONS in your code it won't be a problem to upgrade the version to 8.

I leave you a good guide to learn how to upgrade the versions: Guide to upgrade vaadin

like image 59
Paplusc Avatar answered Jan 13 '23 12:01

Paplusc