You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using classes from that jar ( JSONObject and JSONException )
This is to be expected I am afraid. The configuration processor is an annotation processor and is only meant to be used by the build (to generate configuration metadata). It's not a module for which you should have a dependency on whatsoever. As of 2.4.0 we remove starters and annotation processors we know about (see #22036). Let's reuse this issue to update this section of the release notes.
snicoll
changed the title
spring-boot-configuration-processor:2.4.0.jar missing
2.4 Release Notes does not indicate that known annotation processors are removed from repackaged jar
Nov 25, 2020
…en because class JSONException is missing as part of Story 421-423 as part of the sormas integration.
This seems to happen intenially during the repackaging; See: spring-projects/spring-boot#24244
Not sure if the exception calss is necessary at all, because it is not clear which method should throw it.
=> Removed the throw-declaration of JSONException
Is it possible to use JAVA 9 module-info to exclude thoses classes from being used at compilation time. Since the pb is not showing at compilation or test time, only e2e tests were packagred applications could put it in light.
I upgraded a spring boot project from v 2.1 to 2.4.0 .
After a 'mvn clean install' the configuration processor jar is missing in the app.jar.
Build goes with spring-boot-maven-plugin:
I'm using classes from that jar ( JSONObject and JSONException )
And I end up with:
java.lang.ClassNotFoundException: org.springframework.boot.configurationprocessor.json.JSONException
No issue running the Main.java class . Only after packaging the jar has this missing dependency.
The text was updated successfully, but these errors were encountered: