java-sdk icon indicating copy to clipboard operation
java-sdk copied to clipboard

Maven dependency doesn't seem to work

Open TechnoVisionDev opened this issue 3 years ago • 6 comments

Im getting a Unresolved dependency: com.github.DiscordBotList:DBL-Java-Library:jar:2.1.1 error from maven but my dependency xml structure follows what is on jitpack exactly. I also have the jitpack repository as well

https://paste.ofcode.org/55mcCRchgxRj4tzajjN23U

TechnoVisionDev avatar Jun 22 '22 06:06 TechnoVisionDev

I have also tried the following dependency tag and it doesn't work either

    <dependency>
        <groupId>org.discordbots</groupId>
        <artifactId>DBL-Java-Library</artifactId>
        <version>2.1.1</version>
    </dependency>

TechnoVisionDev avatar Jun 22 '22 06:06 TechnoVisionDev

I have also now tried searching the repo in jitpack and get a third dependency tag that ALSO does not work. What is the real dependency?

Could not find artifact com.github.top-gg:java-sdk:jar:2.1.1 in jitpack.io

    <dependency>
        <groupId>com.github.top-gg</groupId>
        <artifactId>java-sdk</artifactId>
        <version>2.1.1</version>
    </dependency>

TechnoVisionDev avatar Jun 22 '22 07:06 TechnoVisionDev

Found ANOTHER dependency tag that doesn't works! This time from maven central. How many different ones are there??

    <dependency>
        <groupId>com.github.DiscordBotList</groupId>
        <artifactId>DBL-Java-Wrapper</artifactId>
        <version>2.1.1</version>
        <type>pom</type>
    </dependency>

TechnoVisionDev avatar Jun 22 '22 07:06 TechnoVisionDev

Found another dependency tag that doesn't work, this time from another jitpack page https://jitpack.io/p/discordbotlist/dbl-java-library

<dependency>
    <groupId>com.github.discordbotlist</groupId>
    <artifactId>dbl-java-library</artifactId>
    <version>2.1.1</version>
</dependency>

TechnoVisionDev avatar Jun 22 '22 08:06 TechnoVisionDev

I have the same issue. Seems like this PR is opened to address it: https://github.com/top-gg/java-sdk/pull/14 can anyone provide an update please?

Update: This one does seem to work.

		<dependency>
			<groupId>com.github.top-gg</groupId>
			<artifactId>java-sdk</artifactId>
			<version>2.0.1</version>
		</dependency>

Thibstars avatar Jul 05 '22 16:07 Thibstars

Resolved by https://github.com/top-gg/java-sdk/pull/14

Hopefuls avatar Aug 10 '22 19:08 Hopefuls