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

[Bug Report] Version 0.4.0: Build failure due to unresolvable Maven dependencies #1500

Closed
3 tasks done
eomanis opened this issue Mar 9, 2024 · 2 comments
Closed
3 tasks done

Comments

@eomanis
Copy link

eomanis commented Mar 9, 2024

Bug Description

Building with Maven fails with this error:

[ERROR] Failed to execute goal on project JMusicBot: Could not resolve dependencies for project com.jagrosh:JMusicBot:jar:0.4.0: Could not find artifact dev.arbjerg:lavaplayer:jar:727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT in dv8tion (https://m2.dv8tion.net/releases) -> [Help 1]

Context: Updating the AUR package

Command line session:

[builduser@mysystem jmusicbot]$ rm -rf src pkg && makepkg --force
==> Making package: jmusicbot 0.4.0-1 (Sa 09 Mär 2024 16:56:15 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading JMusicBot-0.4.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 10.8M    0 10.8M    0     0  6904k      0 --:--:--  0:00:01 --:--:-- 8426k
  -> Found fix-pom.xslt
  -> Found jmusicbot@.service
  -> Found jmusicbot.service
==> Validating source files with sha384sums...
    JMusicBot-0.4.0.tar.gz ... Passed
    fix-pom.xslt ... Passed
    jmusicbot@.service ... Passed
    jmusicbot.service ... Passed
==> Extracting sources...
  -> Extracting JMusicBot-0.4.0.tar.gz with bsdtar
==> Starting build()...
JAVA_HOME is "/usr/lib/jvm/default"
MVN_HOME is "/opt/maven"
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< com.jagrosh:JMusicBot >------------------------
[INFO] Building JMusicBot 0.4.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ JMusicBot ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.102 s
[INFO] Finished at: 2024-03-09T16:56:18+01:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< com.jagrosh:JMusicBot >------------------------
[INFO] Building JMusicBot 0.4.0
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from jitpack.io: https://jitpack.io/dev/arbjerg/lavaplayer/727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/maven-metadata.xml
Downloading from m2.duncte123.dev: https://m2.duncte123.dev/releases/dev/arbjerg/lavaplayer/727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/maven-metadata.xml
(...)
[WARNING] Could not transfer metadata dev.arbjerg:lavaplayer:727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/maven-metadata.xml from/to arbjergDev-snapshots (https://maven.lavalink.dev/snapshots): transfer failed for https://maven.lavalink.dev/snapshots/dev/arbjerg/lavaplayer/727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/maven-metadata.xml, status: 502 Bad Gateway
[WARNING] dev.arbjerg:lavaplayer:727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/maven-metadata.xmlfailed to transfer from https://maven.lavalink.dev/snapshots during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of arbjergDev-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata dev.arbjerg:lavaplayer:727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/maven-metadata.xml from/to arbjergDev-snapshots (https://maven.lavalink.dev/snapshots): transfer failed for https://maven.lavalink.dev/snapshots/dev/arbjerg/lavaplayer/727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/maven-metadata.xml, status: 502 Bad Gateway
(...)
[WARNING] The POM for dev.arbjerg:lavaplayer:jar:727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT is missing, no dependency information available
Downloading from central: https://jcenter.bintray.com/com/github/jagrosh/JLyrics/master-SNAPSHOT/maven-metadata.xml
(...)
Downloaded from m2.duncte123.dev: https://m2.duncte123.dev/releases/com/dunctebot/sourcemanagers/1.9.0/sourcemanagers-1.9.0.jar (65 kB at 23 kB/s)
Downloading from arbjergDev-snapshots: https://maven.lavalink.dev/snapshots/dev/arbjerg/lavaplayer/727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT/lavaplayer-727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19.556 s
[INFO] Finished at: 2024-03-09T16:56:38+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project JMusicBot: Could not resolve dependencies for project com.jagrosh:JMusicBot:jar:0.4.0: Could not find artifact dev.arbjerg:lavaplayer:jar:727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT in dv8tion (https://m2.dv8tion.net/releases) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
==> ERROR: A failure occurred in build().
    Aborting...
[builduser@mysystem jmusicbot]$ 

Steps to Reproduce

  1. Download the .tar.gz release sources archive for JMusicBot 0.4.0
  2. Extract it and, in a command line session, enter the extracted directory where the pom.xml file is
  3. Run mvn clean followed by mvn install

Expected Result

JMusicBot 0.4.0 to be built successfully by Maven

Debug Output

Does not apply since no working .jar can be built

Additional Info

Before running the mvn commands the PKGBUILD replaces in the pom.xml

<version>Snapshot</version>

with

<version>0.4.0</version>

This was not a problem with JMusicBot 0.3.9 and I do not assume it to be causative for this build error.

Checklist

@eomanis
Copy link
Author

eomanis commented Mar 9, 2024

Alright wait. This may have been a transient server-side error when retrieving the dependencies.

@eomanis
Copy link
Author

eomanis commented Mar 9, 2024

Seems the servers where those dependencies are coming from are overloaded, just try mvn install again until it works.

@eomanis eomanis closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
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

1 participant