Issues with reference.conf in libraries not getting referenced after pulling library out of main project and into Nexus

16 views
Skip to first unread message

Richard Ney

unread,
May 30, 2017, 9:03:19 PM5/30/17
to Akka User List
We have a project that's composed of 5 different SBT projects. All of the SBT projects originally pulled a common library so it was built with each component and contained some common classes and reference.conf files. In our latest revision we've pulled the common library out into a separate build with the library getting published and pulled from a Nexus repository.

After changing the reference in the SBT projects so it pulls from Nexus we've noticed that the default values inside our reference.conf files aren't getting pulled. The easiest example was akka.actor.provider is specified in reference.conf inside our common-cluster-model-1.1.0-M3.jar file but I've had to include this inside the main application's application.conf to get the application to start up.

-Richard

Patrik Nordwall

unread,
May 31, 2017, 2:22:20 AM5/31/17
to Akka User List
You should never try to override properties defined in one reference.conf in another reference.conf. The order is undefined and you will not know what you are running. In other words, Akka properties should be defined in application.conf, never in reference.conf outside Akka.

The purpose of reference.conf is for a library to define default values. One library cannot override default values of another library.

/Patrik
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Richard Ney

unread,
May 31, 2017, 3:17:59 AM5/31/17
to akka...@googlegroups.com
Kinda suspected that would be your answer 😎

Sent from my iPhone
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/il1bivoUm68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

Roland Kuhn

unread,
Jun 4, 2017, 6:33:02 AM6/4/17
to akka-user
Another way to put this: yeah, you can do this, but you’ll have to use a suitable ClassLoader implementation that you control :-)
Reply all
Reply to author
Forward
0 new messages