rampatra / jbot

Make Slack and Facebook Bots in Java.
GNU General Public License v3.0
1.2k stars 352 forks source link

Upload file to slack #165

Closed Elfilali-Taoufiq closed 4 years ago

Elfilali-Taoufiq commented 4 years ago

Hii everyone, i'm trying to send file to slack using Jbot, i saw an issue that use the Meteoroid library to do it, but when i get the maven dependecy of the library it doesn't work for me, if there some suggestion please ?

rampatra commented 4 years ago

What error do you get? Any logs?

Elfilali-Taoufiq commented 4 years ago

when i try to import Meteoroid from Maven repo :

 [INFO] Downloading from : https://repo.maven.apache.org/maven2/com/os/operando/meteoroid/meteoroid/1.0.0/meteoroid-1.0.0.pom
[WARNING] The POM for com.os.operando.meteoroid:meteoroid:jar:1.0.0 is missing, no dependency information available
[INFO] Downloading from : https://repo.maven.apache.org/maven2/com/os/operando/meteoroid/meteoroid/1.0.0/meteoroid-1.0.0.jar
[INFO] ------------------------------------------------------------------------
rampatra commented 4 years ago

Did you add this https://dl.bintray.com/operandoos/maven/ under repositories in your pom.xml file?

It seems maven isn't able to find the dependency. Adding the correct repo should solve this.

Elfilali-Taoufiq commented 4 years ago

I searched for the maven repo, and the one that I found is: https://mvnrepository.com/artifact/com.os.operando.meteoroid/meteoroid it's not working for me

rampatra commented 4 years ago

Can you paste your pom.xml file here, please?

rampatra commented 4 years ago

Also, use the latest version, i.e, 1.2.0.

Elfilali-Taoufiq commented 4 years ago

this is my Pom.xml file: <?xml version="1.0" encoding="UTF-8"?>

4.0.0 me.ramswaroop.jbot jbot-parent 4.1.2-rc.3-SNAPSHOT jbot-example 4.1.2-rc.3-SNAPSHOT jar JBot Example A sample Slack/Facebook bot using JBot. me.ramswaroop.jbot jbot 4.1.2-rc.3-SNAPSHOT org.springframework.boot spring-boot-starter-test test com.squareup.okhttp3 okhttp 4.3.1 com.github.kingchn meteor-util 1.0.0 com.os.operando.meteoroid meteoroid 1.2.0 org.springframework.boot spring-boot-maven-plugin
Elfilali-Taoufiq commented 4 years ago

it doesn't find the dependency

Elfilali-Taoufiq commented 4 years ago

It's fine, I added the jar file, thank you so much for the support

rampatra commented 4 years ago

I don't see the repository in your pom.xml file. There are 2 ways to add the repository, in your pom file or in the maven settings file. See here https://maven.apache.org/guides/mini/guide-multiple-repositories.html for more info.