Question: Suppose you are using Maven in a corporate environment and, to save bandwidth, you want to prevent the need for large numbers of developers to download the same dependency from the internet. What do you do to limit this?

  1. Create an internal corporate repository to store copies of the necessary artifacts.
  2. It is not possible to do this.
  3. When defining the dependency, set the scope to provided.
  4. Each developer should define the dependency in the POM file in the local copy of the project.

Answer: The correct answer of the above question is Option A:Create an internal corporate repository to store copies of the necessary artifacts.