title: Spring Native 0.9.1-SNAPSHOT fails to start in IDEA
body: <p>Just generated on <a href="https://start.spring.io/" rel="nofollow noreferrer">https://start.spring.io/</a> Spring Boot 2.4.4 project with added Spring Boot Native 0.9.1-SNAPSHOT</p>
  <p>and it fails to start within IDEA (so not yet even as native image)</p>
  <blockquote>
  <p>The ApplicationContext could not start as 'org.springframework.aot.StaticSpringFactories' that is generated by the Spring AOT plugin could not be found.</p>
  </blockquote>
  <p>Full output</p>
  <pre><code>/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java &quot;-javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=52158:/Applications/IntelliJ IDEA CE.app/Contents/bin&quot; -Dfile.encoding=UTF-8 -classpath ....
  2021-03-20 22:07:21.264 ERROR 10192 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
  
  ***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  The ApplicationContext could not start as 'org.springframework.aot.StaticSpringFactories' that is generated by the Spring AOT plugin could not be found.
  
  Action:
  
  Review your local configuration and make sure that the Spring AOT plugin is configured properly.
  If you're trying to run your application with 'mvn spring-boot:run', please use 'mvn package spring-boot:run' instead.
  See https://docs.spring.io/spring-native/docs/current/reference/htmlsingle/#spring-aot for more details.
  
  
  Process finished with exit code 1
  </code></pre>
  <p>I noticed that for my usual project with Web and JPA over hibernate some extra maven plugin were added by Initializr:</p>
  <pre class="lang-xml prettyprint-override"><code>    &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;excludes&gt;
                          &lt;exclude&gt;
                              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
                              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
                          &lt;/exclude&gt;
                      &lt;/excludes&gt;
                      &lt;image&gt;
                          &lt;builder&gt;paketobuildpacks/builder:tiny&lt;/builder&gt;
                          &lt;env&gt;
                              &lt;BP_NATIVE_IMAGE&gt;true&lt;/BP_NATIVE_IMAGE&gt;
                          &lt;/env&gt;
                      &lt;/image&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.experimental&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-aot-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${spring-native.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;test-generate&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;test-generate&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;generate&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.hibernate.orm.tooling&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-enhance-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${hibernate.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;enhance&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;enhance&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;failOnError&gt;true&lt;/failOnError&gt;
                              &lt;enableLazyInitialization&gt;true&lt;/enableLazyInitialization&gt;
                              &lt;enableDirtyTracking&gt;true&lt;/enableDirtyTracking&gt;
                              &lt;enableAssociationManagement&gt;true&lt;/enableAssociationManagement&gt;
                              &lt;enableExtendedEnhancement&gt;false&lt;/enableExtendedEnhancement&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  </code></pre>