Package a spring boot application including JSPs and static resources

The following example works with Spring Boot 1.3.3.RELEASE: https://github.com/ghillert/spring-boot-jsp-demo

The key is to put the static jsp content in:

/src/main/resources/META-INF/resources/WEB-INF/jsp

and ensure you define the view prefix/suffix in your application.properties:

spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp

Is there any reason why you can't use the war packaging type? https://maven.apache.org/plugins/maven-war-plugin/usage.html I would recommend to use the war packaging type and use default maven web-application structure.

If you really want to use the jar plugin for your webapp, you need to configure it for your project. Due to your posting, I don't understand your structure and can't give you an example. Check out the usage of jar plugin here:https://maven.apache.org/plugins/maven-war-plugin/usage.html