title: spring boot not finding Entities
body: <p>I am running a spring boot application with the following structure</p>
  
  <pre><code>Main Application 
   com/my/application/app/boot/AppStarter.java
   depends on Lib Application
  
  Lib Application
   META-INF/package/persistence.xml
   com/my/application/data/Entity1.java
  </code></pre>
  
  <p>Where Entity 1 is a persistence object using <code>@Entity</code> and <code>@Table</code> annotations</p>
  
  <p>AppStarter is as follows:</p>
  
  <pre><code>@ComponentScan({ "com.my.application.sampleScan1",
          "com.my.application.sampleScan2"})
  @EntityScan(basePackages={"com.my.application.data"})
  @EnableAutoConfiguration
  @Configuration
  @PropertySources({
          @PropertySource(value = "classpath:application.properties", ignoreResourceNotFound = true),
          @PropertySource(value = "classpath:test.properties", ignoreResourceNotFound = true) })
  @ImportResource({ "classpath:my/application/fake/fakeContext.xml"})
  public class FakeAppBooter {
  
  public static void main(String args[]) {
      SpringApplication.run(FakeAppBooter.class, args);
  }
  }
  </code></pre>
  
  <p>When I package this using the spring boot application as a jar, The Lib Application is within the <code>/lib/LibApplication.jar</code> , however when it tries to access the Entity <code>Entity1</code>, I get an:  <code>org.hibernate.MappingException: Unknown entity: com.my.application.data.Entity1</code></p>
  
  <p>When this is executed from within eclipse, this works fine, it only breaks when i run the spring-boot-plugin generated jar.</p>