Akka-Essentials icon indicating copy to clipboard operation
Akka-Essentials copied to clipboard

Akka configuration file is not attached in jar file

Open martinvich opened this issue 11 years ago • 1 comments

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>

martinvich avatar Jul 09 '13 03:07 martinvich

My bad..the /resource directory should be /resources I have changed the directory name, now the conf will be bundled in the jar

write2munish avatar Jul 09 '13 08:07 write2munish