I want to package a spring-boot application as jar, and I do so with mvn package.
This produces a jar which does not contain any /WEB-INF/jsp
I had the same problem you had. I tried the answer above that you marked correct but it didn't work for me.
This worked ... change the pom.xml to ...
war
... this will causes maven to create a WAR file that is executable like so ...
java -jar yourwarfile.war
I found this solution with this similar question here ...
WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven