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

Could not GET dependency metadata.xml #91

Closed
yuiidev opened this issue Jun 13, 2019 · 2 comments
Closed

Could not GET dependency metadata.xml #91

yuiidev opened this issue Jun 13, 2019 · 2 comments

Comments

@yuiidev
Copy link

yuiidev commented Jun 13, 2019

I'm using Gradle in my project, and when attempting to build I'm getting:

org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://repo.karuslabs.com/repository/lingua-franca-releases/com/comphenix/executors/BukkitExecutors/1.1-SNAPSHOT/maven-metadata.xml'. Received status code 400 from server: Repository version policy: RELEASE does not allow metadata in path: com/comphenix/executors/BukkitExecutors/1.1-SNAPSHOT/maven-metadata.xml

From my build.gradle

repositories {
    maven { url 'https://repo.karuslabs.com/repository/chimera-releases/' }
    maven { url 'https://repo.karuslabs.com/repository/lingua-franca-releases/' }
}

dependencies {
    compile group: 'com.karuslabs', name: 'commons', version: '4.2.0'
}

I found the lingua-franca repo on your server, which fixed the issue that it was unable to retrieve the dependency in the first place, however this issue still remains.

@Pante
Copy link
Owner

Pante commented Jun 13, 2019

I'm pretty sure that's not the full build.gradle and there's a dependency on BukkitExecutors. What's happening is that Gradle is trying to find the BukkitExecutors repository in Chimera's and Lingua Franca's repository. That fails since it's not hosted in either repository and causes the exception.

Try removing the repository for lingua-franca unless you're using lingua-franca too. After which, add the following repositories which I took from here your build.gradle.

repositories {
    maven { url 'https://repo.karuslabs.com/repository/chimera-releases/' }
    maven { url http://repo.comphenix.net/content/repositories/snapshots/' }
    maven { url 'http://repo.comphenix.net/content/repositories/releases/'}
    // Your other repositories
}

This should fix the issue, do let me know if the error still persists.

@yuiidev
Copy link
Author

yuiidev commented Jun 13, 2019

Correct, that was only the relevant part of my build.gradle file.
Adding the repository did indeed fix my issue, thank you.

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

No branches or pull requests

2 participants