mostly all java standalone-applications end up in a folder looking like this after they are deployed to production.
myapp
|->lib (here lay all dependenc
This kind of deployment directory structure is very popular and have adopted by many brilliant apps like apache maven and ant.
Yes, we can achieve this by using maven-assembly-plugin at maven package phase.
Sample pom.xml:
org.apache.maven.plugins
maven-assembly-plugin
2.2-beta-5
package
attached
src/main/assembly/binary-deployment.xml
Sample binary-deployment.xml:
bin
tar.gz
true
src/main/java
conf
*.xml
*.properties
src/main/bin
true
755
src/main/doc
doc
true
lib
true
false
runtime