/micronaut-java-parent-example

Simple example of how to use micronaut-java-parent

Primary LanguageJavaApache License 2.0Apache-2.0

Micronaut Maven Java parent - Example

This project try to be a simple but complete example of use of micronaut-java-parent.

In this example you can find:

  • Code written in Java.
  • Maven multi-module project, that separates domain and REST API.
  • Use of Lombok annotations.
  • Integration with Spring transaction manager and JdbcTemplate, and use of @Transaction.
  • Use dockerized PostgreSQL to run integration tests.
  • Ability to run application from Maven command line (mvn -pl rest exec:exec).
  • Ability to dockerize de application with Jib (mvn -pl rest jib:dockerBuild)

To build (compile, test, package, integration tests...) the complete project you can run in the root project directory:

mvn clean install

Please check the source code, specially the different pom.xml, to see how all things are easily configured.