Does any one used docker maven plugin for running jar as container

Does any one used docker maven plugin for running jar as container.
For now using pom.xml file we are building jar file; Now we want to test jar on a container we would like to run on a maven docker plugin, update pom.xml file and create Dockerfile to copy the jar and get the container created.

Could some one let me know the process involved in achieving this activity; Also, I would like to know what modifications do we need to add in pom.xml file and get the container ready for testing.