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

Maven dependency misses library telegrambots #836

Closed Antonio112009 closed 3 years ago

Antonio112009 commented 3 years ago

I decided to start a new project and imported telegrambots library (5.0.1) via maven. My Intellij downloaded only telegram-meta:5.0.1, while telegrambots:5.0.1 was missing in list of external libraries. I decided to downgrade to 4.9 and the missing library appeared! When I upgraded back to 5.0.1 both libraries upgraded back to 5.0.1.

Steps to see the issue: 1 - open IntelliJ and create new maven project 2 - add dependency with telegrambots 5.0.1 to the pom.xml 3 - see which libraries have been downloaded

If everything is OK, try to add dependency for spring (telegrambots-spring-boot-starter).

My maven dependency:

<dependency>
     <groupId>org.telegram</groupId>
     <artifactId>telegrambots</artifactId>
     <version>5.0.1</version>
</dependency>

My screenshot from my first try (5.0.0 shows because I was doing downgrade)

2020-11-27 в 14 30 21
Antonio112009 commented 3 years ago

I believe that person with issue #833 faced the same problem

rubenlagus commented 3 years ago

Not sure what's the issue here. I have tried to create a new project and after doing Maven->reimport it correctly download the corresponding external dependencies

Antonio112009 commented 3 years ago

Seems like the issue was with Maven. It's almost 2 months past and the issue could be fixed on Maven's side