NoClassDefFoundError while using any Maven dependency

I am using Railway for java + Maven, and every time I attempt to use any maven dependencies, the program just throws a NoClassDefFoundError. Whilst compiling and in the code editor, no errors are shown, and it works locally. But when uploaded to Railway, the build logs will show that they downloaded it from Maven successfully, but they won't function properly; throwing a NoClassDefFoundError any time they are used.
3 Replies
Firefox
FirefoxOP2y ago
project id: bbc4666a-76fd-47ea-ae8b-19a92c971e63
Adam
Adam2y ago
You may have to install Maven, create a nixpacks.toml file and add maven in the setup step https://nixpacks.com/docs/configuration/file
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
Adam
Adam2y ago
you can find packages here https://search.nixos.org/packages
Want results from more Discord servers?
Add your server