1

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?

DarVar
  • 16,882
  • 29
  • 97
  • 146

1 Answers1

1

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:

Community
  • 1
  • 1
Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185