Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akka configuration file is not attached in jar file #2

Open
martinvich opened this issue Jul 9, 2013 · 1 comment
Open

Akka configuration file is not attached in jar file #2

martinvich opened this issue Jul 9, 2013 · 1 comment

Comments

@martinvich
Copy link

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>
@write2munish
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants