Skip to content

Could not find me.lucko.luckperms:placeholders-common:5.1-SNAPSHOT. #16

@toddejohnson

Description

@toddejohnson

When running build it fails looking for me.lucko.luckperms:placeholders-common:5.1-SNAPSHOT which it appears is no longer at the CI maven repo https://ci.lucko.me/plugin/repository/everything/me/lucko/ repo:

$ ./gradlew build

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not find me.lucko.luckperms:placeholders-common:5.1-SNAPSHOT.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
       - https://ci.lucko.me/plugin/repository/everything/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://ci.lucko.me/plugin/repository/everything/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
       - https://repo.velocitypowered.com/snapshots/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://repo.velocitypowered.com/snapshots/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
       - https://repo.essentialsx.net/n3fs/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://repo.essentialsx.net/n3fs/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
     Required by:
         project :

However if switched back to https://repo.lucko.me/ it appears to exist although build still fails until I switch to the non-snapshot version although the maven-metadata.xml exists:

$ ./gradlew clean build --refresh-dependencies

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not find me.lucko.luckperms:placeholders-common:5.1-SNAPSHOT.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
       - https://repo.lucko.me/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://repo.lucko.me/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
       - https://repo.velocitypowered.com/snapshots/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://repo.velocitypowered.com/snapshots/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
       - https://repo.essentialsx.net/n3fs/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/maven-metadata.xml
       - https://repo.essentialsx.net/n3fs/me/lucko/luckperms/placeholders-common/5.1-SNAPSHOT/placeholders-common-5.1-SNAPSHOT.pom
     Required by:
         project :
BUILD FAILED in 16s

So I used this patch to make it work but am open to better maven ways as I'm still new to it:

diff --git a/build.gradle b/build.gradle
index 6ef7b44..ef4745b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -14,7 +14,7 @@ description = 'A simple global chat plugin for Velocity.'
 repositories {
     mavenCentral()
     maven {
-        url 'https://ci.lucko.me/plugin/repository/everything/'
+        url 'https://repo.lucko.me/'
     }
 
     maven {
@@ -33,7 +33,7 @@ dependencies {
     compileOnly 'net.luckperms:api:5.2'
     compileOnly 'uk.co.n3fs.mc:Neutron-N3FS:5.0.0-SNAPSHOT'
 
-    implementation 'me.lucko.luckperms:placeholders-common:5.1-SNAPSHOT'
+    implementation 'me.lucko.luckperms:placeholders-common:5.1-20210925.211930-30'
     implementation 'net.kyori:adventure-serializer-configurate3:4.3.0'
 }
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions