I have a micronaut project where I do not inherit the pom, but I use dependency management instead:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.micronaut.platform</groupId>
<artifactId>micronaut-parent</artifactId>
<version>4.4.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
I expected that mvn package
would still generate a single executable jar, but this does not seem the case: it generates a jar with just the project classes.
how can I trigger the mn plugin to shade the final jar?