Converting to WAR file

How can I convert my vaadin version 23 JAR file to WAR file? It says that the project or package is JAR based on my pom.xml file.

https://docs.spring.io/spring-boot/docs/3.0.6/reference/htmlsingle/#howto.traditional-deployment