Akka-Essentials
Akka-Essentials copied to clipboard
Akka configuration file is not attached in jar file
application.conf is not attached in jar file. GridPattern project is throwing following exception
Exception in thread "main" com.typesafe.config.ConfigException$Missing: No configuration setting found for key ....
This happens because default maven directory layout takes resources from src/main/resources and these projects are using src/resource directory.
To fix this issue add following code into pom.xml
<build>
<resources>
<resource>
<directory>src/resource</directory>
</resource>
</resources>
</build>
My bad..the /resource directory should be /resources I have changed the directory name, now the conf will be bundled in the jar