Search code examples
javamavennoclassdeffounderror

Source code compile but NoClassDefFoundError happens on running


So I have multiple projects using Maven and during a full year everything was working but then I tried to implement SymmetricDS and now when I install my "core" projects then try to launch the "main" program it says that it can't find one of my classes from my "core". What could cause this problem? I know I didn't provide any maven file but I don't know which one to show exactly :) If anyone would like to see it to help me just ask and I'll provide it!

edit : My Structure is the PunchServer using PunchShared using Core (I've removed custom repo from pom files)

Server pom : pastebin.com/sfxtXjKb

Shared pom : pastebin.com/abq7uWrn

Core pom : pastebin.com/zwZi6R5F


Solution

  • Without any details it is rough to guess. But you could check this: Some dependency in your pom.xml might be using a version range rather than just a fixed version. If a new version of your dependencies was released in these months then your project might be pulling new libraries causing issues you were not having before.