title: ComponentScan and Autowired not working for dependent Spring project?
body: <p>I have two projects A and B. Both are built with Maven, and project A has a Maven dependency to project B. Both project have a class with @Configuration annotation where I define @Beans.</p>
  
  <p>I have beans in project A, from both projects. If I use the @Autowired annotation in project A of a bean that is defined in same project, the autowiring works. However, if I use the @Autowired annotation in project A of a bean from project B, I will get an exception.</p>
  
  <p>What does this mean? How can I autowire a bean in project A, that is defined in project B?</p>