If I create a Maven job in Jenkins (New Item => Maven project, using the maven plugin) with all defaults and run it, I get this error:
To make it simple, just use my public docker image
docker push chiraggupta95/jenkinswithmvn:v1
In case you want to customize your own image, just check out my git repo for complete instructions.
https://github.com/chiraggupta95apr/jenkins
Happy Coding :)