JavaMoney / jsr354-ri

JSR 354 - Moneta: Reference Implementation
Other
334 stars 100 forks source link

Problem when upgrade 1.4.2 to 1.4.3 #403

Closed MehrunesSky closed 6 months ago

MehrunesSky commented 7 months ago

Hello,

When i upgrade my project from 1.4.2 to 1.4.3, my project cannot start because tomcat cannot find the javax.annotation.PostConstruct.

Do you have any information about this problem?

Could this be related to the fact that in moneta-core's module-info.java, the "requires java.annotation" has been replaced by "requires jakarta.annotation;"?

PS : I am on Java 17

keilw commented 7 months ago

If you want to use IMF rates, you should use 1.4.4, but that won't change the Jakarta EE dependencies like Annotations. You should use Tomcat 10.0.0 or higher.

keilw commented 7 months ago

@MehrunesSky Did using Tomcat 10 solve your problem?

keilw commented 6 months ago

I assume, this can be addressed by using Tomcat 10 or a similar (Jakarta EE 9 compatible) environment, or as an alternative explicitly adding the correct Jakarta Annotations version.