Enhancement Request: Project - spring-boot-maven-plugin

The plugin goal repackage allows us to package main folder along with all the necessary dependencies into a jar file. However, this leaves the test folder.

We generally used to have a project that needed only the src folder in classpath which can be deployed without tests. But increasingly, we can see many projects trying to package their project along with their tests so that they can be run along with the tests.

Also, my many testing projects (like mine) require test folder to be included within the package so that the tests inside the test folders can be run. The src folder contains the test framework and the test folder contains the test utilizing the classes from src. I would request this option to be made available within the plugin. thanks!

Comment From: wilkinsona

Duplicates https://github.com/spring-projects/spring-boot/issues/6445.