I use standard maven directory structure for my project http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
However, this is problematic because configuration files are going to be in jar file. There is some discussion on reading the config files from predefined location as How to get the path of a running JAR file?
But I am trying to package my jar file without any configuration files in it and make the directory structure look similar to any other open source projects that we download
project|
--lib
|
--conf
|
--docs
|
--src
I prefer not to do any source code changes (ex:all my config files are in source path for maven development and I just read the files directly without prepending with the path); if I have to change path to config files in source code, what should I do to make the path work both in development and in production My questions
1)how can I have current "development" directory structure as is, but have my "production" release directory will look similar to that of any apache(say) project
2)for every release, what changes should I do in pom.xml so that the version numbers are appended to jar and incremented
I prefer not to do any source/java code changes (ex:all my config files are in source path for maven development and I just read the files directly without prepending with the path); if I have to change path to config files in source code, what should I do to make the path work both in development and in production
(I am using Maven and Eclipse)