Skip to content

vlsi/mvn-mediation

Repository files navigation

Maven Dependency Mediation Demo

This project demonstrates Maven dependency mediation issues when multiple libraries depend on incompatible versions of transitive dependencies.

Examples in this repository

This repository contains two separate, self-contained examples that reproduce the same Maven dependency mediation problem using different project layouts:

  • Case 1 — Multi‑module project

    • Code: case1-multi-module
    • Demonstrates the issue within a classic multi-module Maven build (parent + modules).
  • Case 2 — Standalone libraries and application

    • Code: case2-standalone-libs
    • Demonstrates the same conflict when libraries are built independently and then consumed by an application.
  • Case 3 — Standalone libraries and application + direct Guice dependency

    • Code: case3-standalone-with-direct-dep
    • Demonstrates the same conflict when libraries are built independently and then consumed by an application which uses direct Guice dependency.

All the cases exhibit how Maven’s dependency mediation selects incompatible versions depending on declaration order, leading to runtime NoSuchMethodError.

About

Example project to reproduce MNG-7852

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published