I know its not a good practice to put a properties file inside the jar but our scenario dictates that requirement. What i want is to put the contents of resources folder inside the jar as is. In my maven project, the contents of resources are added in the jar but at the root of the jar. What I need is to have a jar with this structure:
jar root
|__com
| |_mycompany
| |____my java files are here as expected
|__resources
|__my properties files and config files should be here
What i get is:
jar root
|__com
| |__mycompany
| |____my java files are here as expected
|
|__my properties files and config files
I know I can add the resources folder as the source folder in eclipse but I need a solution based on maven.
Thanks in advance.