Understanding Maven’s compile, provided, runtime, and test scopes
This article explains the four Maven dependency scopes—compile, provided, runtime, and test—by describing when each jar is available during development, testing, runtime, and packaging, illustrating each with concrete examples and a helpful movie‑production analogy.
