Docker is a platform to develop, deploy and run applications with containers for developers.
As we know that maven is a build tool for applications. Maven offers plugins to build docker images. Following are some good maven plugins for building docker images in Java application:
Jib Maven plugin
Jib is a Maven plugin for building Docker and OCI images for your Java applications.
Github URL: https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin
fabric8io docker maven plugin
This is a Maven plugin for building Docker images and managing containers for integration tests.
Github URL: https://github.com/fabric8io/docker-maven-plugin