I use maven plugin to set the main class like this :
org.springframework.boot spring-boot-maven-p
There's a launcher for that in Spring Boot already. You need to build the jar with that as the Main-Class (by setting the layout in the build config).