To learn about the Takari Maven Lifecycle you can take a look here:
http://takari.io/book/40-lifecycle.html
To use it, declare the plugin as extension in your POM:
<plugin>
<groupId>io.takari.maven.plugins</groupId>
<artifactId>takari-lifecycle-plugin</artifactId>
<version>2.4.0</version>
<extensions>true</extensions>
</plugin>
Requirements for building this project and projects using takari-lifecycle-plugin:
- Java 17 or newer (since 2.3.0); projects can still produce Java 8 bytecode by using the "release" compiler flag.
- Maven 3.9.13 or newer (since 2.4.0; 2.3.x supports Maven 3.6.3+).
Declaring the plugin with <extensions>true</extensions> is also required for -DdeployAtEnd=true;
without it the build fails instead of silently skipping the deployment.