Skip to content
Sharp

Build Tools · interview question

How would you explain a common strategy to manage transitive dependency conflicts in a Maven project in an interview?

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

Correct answer

B. Use a specific version in the project's pom.xml

Why

In Maven, you can manage transitive dependency conflicts by specifying a particular version of the dependency in your project's pom.xml. This ensures that the specified version is used, resolving any version conflicts.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →