Here\'s what I\'m trying to achieve - a dist
directory (or a zip file) that looks like this:
dist/
|-- application-1.0.jar
|-- conf/
|-- app
You need to use two plugins to accomplish this: maven-jar-plugin and maven-assembly-plugin.
Useful pom.xml
samples:
(I would recommend you to separate the user-editable properties files to separate directory, but it is a matter of taste.)
Sample assembly configuration, to get you started:
dist
zip
true
dist
lib
runtime
src/conf
conf
src/run
*.sh
src/run/run.sh
0755