I have a Java project with maven and want to add Vaadin to it for UI creation.
What do I have to add to the dependencies?
I found this: https://vaadin.com/docs/latest/tools/mpr/introduction/1-maven-v8
but I think that’s a little outdated and also looks like more dependencies than I need.
I tried to add the following dependencies to my pom.xml:
with this property set: <vaadin.version>24.3.6</vaadin.version>
Now, for the first dependency the integration works, for vaadin-core I get the error shown in the screenshot.
The article you’re reading for Multiplatform Runtime, which allows running /using multiple vaadin versions at the same time, if I remember correctly. I’ll take a look at what you actually need.
Actually, simplest way is to likely just work from an example, in which case, you can create a start project here, that is based on maven: https://start.vaadin.com/
In the start project you’ll also find necessary build profile adjustments, necessary repositories, dependencyManagement setup… and outside of the pom.xml stuff, you’ll also have a the folder structure and additional nessessary and example files.
Of course, that’s how I thought you’d use it anyway, just to compare, and see what’s required in a fresh vaadin project. And you’ll also have a copy to test some vaadin functionality if it’s not working in your project.
it’s also a java thing. But I’ll have to look into how this works then. I somewhat expected the java main method to run and start the UI to then interact via vaadin with the java code, database etc.