Classpath resources inside one-jar packaged via sbt
I have a project that is build using SBT which packages a single jar using the one-jar plugin. That project contains a bunch of json files in src/main/resources/fixture which I used to access via new java.io.File(App.getClass.getResource("/fixture").getFile Unfortunately this doesn't work any longer since no Resource is returned. I think one-jar uses a special classloading mechanism? Whats the best way to solve this? I think one-jar uses a special classloading mechanism? Yes, this must be true since there is no standardized way to load classes that packaged into dependency jar that is in turn