From ee352cee37357f8746afdce68fd5dc710ccafe3a Mon Sep 17 00:00:00 2001 From: bryan hunt Date: Fri, 7 Feb 2014 09:14:22 +0000 Subject: [PATCH] =doc #3849 Add instructions for Maven Shade plugin --- akka-docs/rst/general/configuration.rst | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/akka-docs/rst/general/configuration.rst b/akka-docs/rst/general/configuration.rst index cf7bf3fb29..d2fc22c64c 100644 --- a/akka-docs/rst/general/configuration.rst +++ b/akka-docs/rst/general/configuration.rst @@ -79,6 +79,46 @@ When using JarJar, OneJar, Assembly or any jar-bundler that if you put/merge multiple jars into the same jar, you need to merge all the reference.confs as well. Otherwise all defaults will be lost and Akka will not function. + +If you are using Maven to package your application, you can also make use of the `Apache Maven Shade Plugin`_ support for `Resource Transformers`_ to merge all the reference.confs on the build classpath into one. + +The plugin configuration might look like this:: + + + org.apache.maven.plugins + maven-shade-plugin + 1.5 + + + package + + shade + + + true + allinone + + + *:* + + + + + reference.conf + + + + akka.Main + + + + + + + + Custom application.conf -----------------------