JavaMoney / jsr354-ri

JSR 354 - Moneta: Reference Implementation
Other
344 stars 101 forks source link

Problem when upgrade 1.4.2 to 1.4.3 #403

Closed MehrunesSky closed 9 months ago

MehrunesSky commented 10 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 10 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 10 months ago

@MehrunesSky Did using Tomcat 10 solve your problem?

keilw commented 9 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.