Skip to content

Missing dependencies using https://repo.opencollab.dev/main #854

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

Open
andreypfau opened this issue Aug 22, 2024 · 14 comments
Open

Missing dependencies using https://repo.opencollab.dev/main #854

andreypfau opened this issue Aug 22, 2024 · 14 comments

Comments

@andreypfau
Copy link
Contributor

:worker:main: Could not find com.github.GeyserMC:mcauthlib:e5b0bcc.
Searched in the following locations:
  - https://repo.maven.apache.org/maven2/com/github/GeyserMC/mcauthlib/e5b0bcc/mcauthlib-e5b0bcc.pom
  - https://repo.opencollab.dev/main/com/github/GeyserMC/mcauthlib/e5b0bcc/mcauthlib-e5b0bcc.pom
Required by:
    project :worker > org.geysermc.mcprotocollib:protocol:1.20.6-2-SNAPSHOT:20240610.212238-11

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

@Konicai
Copy link
Member

Konicai commented Aug 22, 2024

Try adding jitpack as a repo

@FelixTPG
Copy link

FelixTPG commented Sep 21, 2024

didn't work for me

@AlexProgrammerDE
Copy link
Contributor

@andreypfau @FelixTPG any update?

@FelixTPG
Copy link

FelixTPG commented Oct 8, 2024

It somehow worked in the end for me, but i‘ll send my full pom tomorrow when I‘m back at my pc

@FelixTPG
Copy link

        <repository>
            <id>scijava.public</id>
            <url>https://maven.scijava.org/content/repositories/public/</url>
        </repository>

        <dependency>
            <groupId>com.github.GeyserMC</groupId>
            <artifactId>MCProtocolLib</artifactId>
            <version>1.20-1</version>
        </dependency>

This was the only thing that worked for me...

@andreypfau
Copy link
Contributor Author

@andreypfau @FelixTPG any update?

I use exactly that in readme. Try to reproduce on empty project with current settings:

image

@FelixTPG
Copy link

FelixTPG commented Oct 20, 2024

I tried twice. But doesn‘t matter anyways for me. I don‘t use it that often.

@ajh123
Copy link

ajh123 commented Nov 24, 2024

Use the snapshot repository https://repo.opencollab.dev/maven-snapshots/ and add -SNAPSHOT on to the end of your version like this implementation("org.geysermc.mcprotocollib:protocol:1.21-SNAPSHOT")

@TheRedXD
Copy link

TheRedXD commented Mar 9, 2025

Use the snapshot repository https://repo.opencollab.dev/maven-snapshots/ and add -SNAPSHOT on to the end of your version like this implementation("org.geysermc.mcprotocollib:protocol:1.21-SNAPSHOT")

That's completely broken as well. The other dependencies can't be found still

@TheRedXD
Copy link

TheRedXD commented Mar 9, 2025

Found something that works!
While opencollab's main repo is broken, you can try this:

repositories {
    mavenCentral()
    maven {
        url = uri("https://repo.maven.apache.org/maven2/")
    }
    maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
        name = "sonatype-oss-snapshots"
    }
    maven {
        url = uri("https://repo.opencollab.dev/maven-releases/")
    }
    maven {
        url = uri("https://repo.opencollab.dev/maven-snapshots/")
    }
    maven {
        url = uri("https://jitpack.io")
    }
    maven {
        url = uri("https://jcenter.bintray.com")
    }
}

then, in your dependencies, you'll need to use -SNAPSHOT at the end of the version. For example:

dependencies {
    implementation("org.geysermc.mcprotocollib:protocol:1.21.4-SNAPSHOT")
}

The above was for gradle.kts. It should be similar for all of the others.

@onebeastchris
Copy link
Member

You could also use https://repo.opencollab.dev/main/ instead of specifying both the snapshot and release repos separately, that's what we use at Geyser

@TheRedXD
Copy link

TheRedXD commented Mar 9, 2025

@onebeastchris that's literally broken

@onebeastchris
Copy link
Member

onebeastchris commented Mar 9, 2025

Works just fine in Geyser.

However, it won't find the latest releases - they've not been properly published to maven-release or maven-snapshots; so you should be (for now) using snapshot versions

@TheRedXD
Copy link

TheRedXD commented Mar 9, 2025

That's odd, because from testing, main does not work and only maven-snapshots seems to work.

Something noteworthy is that the directory literally shows up as empty on the website: https://repo.opencollab.dev/#/main

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

7 participants