> My final app directory structure should be like this:
> /etc/doss/ - all config files (config.xml, ...)
XML for config data? People never learn ... :-(
> /opt/doss/ - application binaries, ...
> /var/log/ - log files (doss.log, ...)
[quoted text clipped - 4 lines]
> QUESTION: How to configure maven to deploy it preserving this dir
> structure?
One typically does not use the build system for deployment, because it
is for building things, not deploying them. You use it to build an
installation package (of whatever kind you prefer, e.g. for Web Start).
Then you deploy that installation package. A side effect of this is that
you get parts of the installation package tested early.
> Also I don't know how to tell my java app, to look for
> config files in /etc/doss/.
Hard-code the path into your application or make it a command line
option (plus a wrapper script setting it). This will of course thwart
deployment on non *nixoid platforms. The cross-platform way would be to
use the preferences API, properties files carefully loaded based on the
system properties like user.dir, or properties files in the classpath
loaded via getResources().
/Thomas

Signature
The comp.lang.java.gui FAQ:
http://gd.tuwien.ac.at/faqs/faqs-hierarchy/comp/comp.lang.java.gui/
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq