How maven handles and determines what version of dependency will be used when multiple versions of an artifact are found?
Answer / Sneha Singh
When Maven encounters multiple versions of the same artifact, it attempts to resolve dependencies using the following priority:n1. Direct Dependencies: Maven looks for a matching version in the project's direct dependencies.n2. Transitive Dependencies: If not found in direct dependencies, Maven checks transitive (indirect) dependencies.n3. Latest Version Policy: By default, Maven uses the latest snapshot or release available based on the configured repositories.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a mojo?
What does dependency management mean with respect to transitive dependency?
How do you know the version of mvn you are using?
Explain the difference between dependency and plugin in maven?
For POM what are the minimum required elements?
What are its advantages of uber jar?
Name the 3 build lifecycle of maven.
What are the default values for the packaging element?
Can you tell me the default location of your local repository?
What are the main features of maven?
How do you find oracle jdbc driver in maven repository?
Tell me the command to install jar file in local repository.