Do not exclude DevTools from Maven AOT processing classpath
When excluded from the AOT processing classpath, a reflection hint for DevTools' RestartScopeInitializer that's registered in spring.factories is not generated. When the native image is compiled we have no control over its classpath so DevTools is included. This causes a failure at runtime as RestartScopeInitializer cannot be loaded due to the missing reflection hint. Until we have control over the native image classpath, we need to include DevTools on the AOT processing classpath and then rely on DevTools disabling itself in a native image which it already does. Fixes gh-35853pull/36038/head
parent
9a2b9cb066
commit
853caf9a59
Loading…
Reference in New Issue