Tagged articles
3 articles
Page 1 of 1
Selected Java Interview Questions
Selected Java Interview Questions
Jan 20, 2026 · Backend Development

How to Diagnose and Fix Maven Dependency Conflicts (NoSuchMethodError & ClassNotFoundException)

This guide explains why Maven dependency conflicts cause errors like NoSuchMethodError and ClassNotFoundException, shows step‑by‑step commands to inspect the dependency tree, and provides three practical ways—exclusions, forced versions, and dependencyManagement—to resolve and prevent such conflicts in Java projects.

BOMClassNotFoundExceptionDependency Conflict
0 likes · 7 min read
How to Diagnose and Fix Maven Dependency Conflicts (NoSuchMethodError & ClassNotFoundException)
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 14, 2020 · Backend Development

Fixing Maven ClassNotFoundException for json-lib by Adjusting Classifier and outputFileNameMapping

This article explains why a Maven build fails with a ClassNotFoundException for net.sf.json.JSONException due to a missing classifier in the json-lib jar, and shows how to modify the assembly plugin's outputFileNameMapping to correctly include the classifier, preventing the runtime error.

ClassNotFoundExceptionJson-libbuild
0 likes · 4 min read
Fixing Maven ClassNotFoundException for json-lib by Adjusting Classifier and outputFileNameMapping