rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.68k stars 1.18k forks source link

Spring boot 3.0 and jakarta.xml #1152

Open lex-em opened 1 year ago

lex-em commented 1 year ago

Hi.

I upgrade to spring boot 3.0 and runtime failed to find javax.xml.* classes, it needed by JaxbAnnotationModule, that provided in com.fasterxml.jackson.module:jackson-module-jaxb-annotations. It is dependency of org.telegram:telegrambots-meta:6.3.0 and com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider.

image

Downgrading of jakarta.xml.bind:jakarta.xml.bind-api back to 2.3.3 breaks another jackson module

lex-em commented 1 year ago

spring boot issue link https://github.com/spring-projects/spring-boot/issues/33356

lex-em commented 1 year ago

spring boot committers says that com.fasterxml.jackson.module:jackson-module-jaxb-annotations should be replaced by com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider

https://github.com/spring-projects/spring-boot/issues/33356#issuecomment-1327230657

lex-em commented 1 year ago

hi. when will it be fixed?

recursiveribbons commented 1 year ago

Hi, I have created a pull request at #1155 and issue #1144.

If you wish, I do have a test build of this library on Spring Boot 3 if you want to help with testing the PR.

z0mb1ek commented 1 year ago

wait fix too

lex-em commented 1 year ago

temporary fix (6.5.0 version checked). just add to dependencies: implementation("javax.xml.bind:jaxb-api:2.3.1")

lex-em commented 11 months ago

UP still actual today spring boot 3.1.4 telegrambots 6.8.0

Polve commented 10 months ago

With Spring boot 3.2 the problem is even more evident: we need to exclude by hand jackson-module-jaxb-annotations and put in place jackson-module-jakarta-xmlbind-annotations

ilyukou commented 8 months ago

+1 in the queue for fix