You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The plugin currently lets us build the classpath ourselves or use a default that includes compile and runtime dependencies, as well as the main artifact.
The main artifact may not be the regular jar of the project, and NBT therefore fails to find the main class (or any class required by the project). This is case with Spring Boot as our repackage goal makes the "application" jar the main artifact. There is a way to configure this differently but we'd like this to work out-of-the-box.
It seems after changes from #247 we even don't have to customize the classifier to make Spring Boot fine, with 0.9.12+ it works by default. Not sure if that was expected, but good surprise.
Is your feature request related to a problem? Please describe.
The plugin currently lets us build the classpath ourselves or use a default that includes compile and runtime dependencies, as well as the main artifact.
The main artifact may not be the regular jar of the project, and NBT therefore fails to find the main class (or any class required by the project). This is case with Spring Boot as our repackage goal makes the "application" jar the main artifact. There is a way to configure this differently but we'd like this to work out-of-the-box.
Describe the solution you'd like
This is not the first time a plugin has to chose between using
target/classes
as the "classpath of the project" over the jar file produced for the main artifact. For instance, thefailsafe-maven-plugin
offers an option that let users chose between those two options, see https://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#classesDirectory. We also document this in our documentation.Describe alternatives you've considered
Building the classpath ourselves but doing so in the parent looks really unpleasant.
Additional context
None.
The text was updated successfully, but these errors were encountered: