I'm trying to create a Docker image for Maven that will have the default standard Maven plugins already downloaded.
Is there any Maven BOM that contains or mock pom all the standard maven plugins?
I'm trying to create a Docker image for Maven that will have the default standard Maven plugins already downloaded.
Is there any Maven BOM that contains or mock pom all the standard maven plugins?
A Maven install is little more than a bootstrap. Most of Maven's functionality is downloaded as a plugin and cached on the first Maven run.
One idea is that you could run the maven command from within the Dockerfile when building your image.
Possibly a more flexible solution would be to run a second Docker container, using Nexus (or similar repo manager) to cache downloaded dependencies: