Skip to content
Sharp

Build Tools · interview question

What issue might arise when using multiple dependencies in a Maven project, and how can it be mitigated?

Multiple choiceMediumchapter-10-curatedpremiumbuild-toolsdependency-management
Choose one answer
Answer and explanation

Correct answer

B. Version conflicts; resolve by using <dependencyManagement>

Why

Version conflicts can occur when different dependencies require different versions of the same library. This can be mitigated in Maven by using the <dependencyManagement> section to specify a consistent version to be used throughout the project.

Test yourself on Build Tools

A free test with instant, explained results. No account needed.

Start free test
All Build Tools questions →