I am searching for an example for a java project in nix that includes dependencies
How would you typically describe your dependencies? Using Maven? If so, I can strongly recommend https://github.com/icetan/mavenix. I don’t have any public project with it though.
yes usually with pom.xml and maven, what are the alternatives? I’m gonna start project from 0, so I would like to start with the most nix friendly solution.