I have a feeling I'm missing something critical when it comes to bundling resources in JAR files using Maven. My directory structure is the standard Maven one.
When using the IDE I reference the resource files as \main\resources\public\images\path
and it works fine, but when Maven css js and images dont work and the site looks bad. If I look in the jar I find all the css, js and images. When I try to open the css link in a browser I get a 404 error. Here is my pom.xml https://shrib.com/#XGISjWGN7QRfa2EIZD4r. In eclipse it works fine.
I use Spark.staticFiles.location("public");
to load resources.