Spring Lemon would be a good example for this. It uses Spring Boot, and is meant to be included in other Spring Boot applications. This is what we did to create it:
- Created a Spring Boot application, using the Spring Boot Starter Wizard of STS.
- Removed the generated application and test class.
- Removed
spring-boot-maven-plugin
, i.e. the build and the pluginRepositories sections in pom.xml. (See how a pom.xml would look without these sections).