Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload file to slack #165

Closed
Elfilali-Taoufiq opened this issue Jan 22, 2020 · 10 comments
Closed

Upload file to slack #165

Elfilali-Taoufiq opened this issue Jan 22, 2020 · 10 comments

Comments

@Elfilali-Taoufiq
Copy link

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
Copy link
Owner

What error do you get? Any logs?

@Elfilali-Taoufiq
Copy link
Author

Elfilali-Taoufiq commented Jan 22, 2020

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
Copy link
Owner

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
Copy link
Author

Elfilali-Taoufiq commented Jan 22, 2020

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
Copy link
Owner

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

@rampatra
Copy link
Owner

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

@Elfilali-Taoufiq
Copy link
Author

Elfilali-Taoufiq commented Jan 22, 2020

this is my Pom.xml file:

4.0.0
<parent>
    <groupId>me.ramswaroop.jbot</groupId>
    <artifactId>jbot-parent</artifactId>
    <version>4.1.2-rc.3-SNAPSHOT</version>
</parent>

<artifactId>jbot-example</artifactId>
<version>4.1.2-rc.3-SNAPSHOT</version>
<packaging>jar</packaging>

<name>JBot Example</name>
<description>A sample Slack/Facebook bot using JBot.</description>

<dependencies>
    <dependency>
        <groupId>me.ramswaroop.jbot</groupId>
        <artifactId>jbot</artifactId>
        <version>4.1.2-rc.3-SNAPSHOT</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    
    <dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.3.1</version>
</dependency>
   <dependency>
<groupId>com.github.kingchn</groupId>
<artifactId>meteor-util</artifactId>
<version>1.0.0</version>
com.os.operando.meteoroid meteoroid 1.2.0
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

@Elfilali-Taoufiq
Copy link
Author

it doesn't find the dependency

@Elfilali-Taoufiq
Copy link
Author

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

@rampatra
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants