The deployment already has dependencies on the requisite CacheConfigurationService(s).  The CacheConfigurationService already depends on the EmbeddedCacheManagerService.
In other words, this change is redundant.

Rather, the issue, I think, is that the dependency is added in the same phase that attempts to resolve it.  Either the dependency needs to be added in an earlier phase, or, if that is not possible, defer the initialization of the session factory to a later stage.