I\'m trying to build an application that builds a resource file into a jar, but I\'d like to have the project runnable within eclipse. I have a basic maven 2 structure for my pr
Anything that is put in src/main/resources using maven2 will be placed in the root level of the jar. So the method you are currently using will satisfy both conditions.
From the Maven page:
http://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR