My Intellij IDE tells me that the tenant scope of my Bean definition cannot be resolved.
Although this does not stop me from deploying and running my application, it looks a little dirty. Is there any way to tell me Intellij how to solve this?
I tried adding coreserver.jar , which is a jar that contains the TenantScope class, to my module dependencies, but that did not work.
The error is displayed using the Intellij 'Spring Scopes' inspection. I must allow this inspection to somehow know that the tenant area is declared in an XML file in another module. I also tried adding this other module to the dependency on the petsplacecore module, but that didn't work either.
This is what my screen looks like:

Tenant's scope is declared in the yacceleratorstorefront module in the web-application-config.xml file, for example:
<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer"> <property name="scopes"> <map> <entry key="tenant" value="de.hybris.platform.spring.TenantScope"/> </map> </property> </bean>
source share