title: META-INF/spring.factories file missing from Spring Boot application
body: <p>I am fairly new to Spring and Spring Boot, and was asked to work on a legacy Spring Boot project. I am supposed to include in the project some <a href="https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/diagnostics/FailureAnalyzer.html" rel="nofollow noreferrer">FailureAnalyzer</a>s provided by Spring Boot. According to tutorials I came across (like <a href="http://www.baeldung.com/spring-boot-failure-analyzer" rel="nofollow noreferrer">here</a>), all that needs to be done is registering the several FailureAnalyzer classes in the META-INF/spring.factories file.</p>
  
  <p>But when I build the project (using Maven), I don't see a spring.factories file inside the target/META-INF directory. I tried adding one myself but it doesn't seem to be read by the project. What am I missing? What should I be doing to register these FailureAnalyzers?</p>
  
  <p>In case you need it, the spring.factories file looks like this:</p>
  
  <pre><code>org.springframework.boot.diagnostics.FailureAnalyzer=\
    org.springframework.boot.diagnostics.analyzer.AbstractInjectionFailureAnalyzer,\
    org.springframework.boot.diagnostics.analyzer.BeanCurrentlyInCreationFailureAnalyzer,\
    org.springframework.boot.diagnostics.analyzer.BeanNotOfRequiredTypeFailureAnalyzer,\
    org.springframework.boot.diagnostics.analyzer.BindFailureAnalyzer,\
    org.springframework.boot.diagnostics.analyzer.ConnectorStartFailureAnalyzer,\
    org.springframework.boot.diagnostics.analyzer.NoUniqueBeanDefinitionFailureAnalyzer,\
    org.springframework.boot.diagnostics.analyzer.PortInUseFailureAnalyzer,\
    org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer
  </code></pre>