2

The https://start.vaadin.com page creates a new Vaadin Flow project for versions 18 or 19 (pre-release). But the resulting project requires Spring Boot.

I do not want Spring. I do not want Spring Boot. Both solve problems I do not have. Both add complications I do not want.

Is there a way to work with Vaadin 18 or 19 without Spring, with just plain Servlet technology?

Is there any Maven archetype available for Vaadin 18 or 19 but free of Spring & Spring Boot? Formerly, we had the Maven archetype vaadin-archetype-application. But that archetype works only for up to Vaadin 16. Fails for Vaadin 17 & 18.

As a workaround, is there some way to take Spring Boot based project generated on https://start.vaadin.com and then rip out all the Spring related parts? Or is that not viable?

Basically, this Question the same as this Question, Create a new Vaadin Flow 16/17 project using plain Java Servlets without Spring/CDI but for Vaadin 18/19 rather than 16/17.

2 Answers 2

5

The easiest way is to use Skeleton Starter for Vaadin as a base, using the v18 branch in this case.

screenshot of the initial web app provided by Skeleton Starter for Vaadin

Sign up to request clarification or add additional context in comments.

1 Comment

Yes! That works, thank you. Downloaded a zip from that GitHub page. Comes preconfigured for Vaadin Flow 18.0.5. Also comes pre-configured with the Vaadin pre-releases repository address. So I could easily change the version to Vaadin Flow 19.0.0.alpha5.
0

tl;dr

Use Hello World Starters page shown below.

Hello World Starters

For starting a new project in the currently-supported versions of Vaadin Flow, use either:

The non-Spring alternative starter projects come in "Plain Servlet" flavors for Maven as well as for Gradle as your build-management tool. And another starter is configured for Jakarta Contexts and Dependency Injection (CDI). Yet another supports Quarkus.

screen shot of "Hello World Starters" page on Vaadin.com, listing downloads for alternative starter projects without Spring Boot

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.