Instead of all being put in ~/mars-sim/mars-sim-ui/src/main/resources/ it would be nice if the different directories i.e. audio, svg, maps and images are under /media directory. It might make it more easier to keep track of things.
Do you mean simply changing the directory name from /resources/ to /media/ ?
In Java, /resources/ is the default directory for media. We often call getResourceAsStream() or getResource() in loading media files.
In mars-sim, we pretty much adopt the default hierarchy for a mavenized Java project in Eclipse
When you check out the codes in svn, you will find 5 modules (mars-sim-*) that are active and 1 module that are inactive (mars-sim-android).
Inside each module, we have the following 3 major sub directories :
Inside src/main/resources is where we store the media files for each module.
Another thing I'd like to point out is that, after running maven packaging, somehow, the resources/ folder no longer exists by default inside the compiled jar file.
At a result, all the media files directly under the /resources/ directory end up moving to the root directory level of the jar file (If you unzip the jar, you'll see that.).
I don't know how to prevent this from happening yet. May be someone can figure out how to change the behavior of some maven plug-in so that it will be packaged in such a way that the /resource/ folder will be retained (or even rename it to /media/) while the mapping of all media files are kept valid.