Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7908

Server fails to start - Jar bundles junit-platform-commons-1.10.0.jar but lists junit-platform-commons-1.10.2.jar in libraries.list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • Recreated on:

      • Windows 10
      • Ubuntu 20.04.6 LTS
    • BuildTools version: git-BuildTools-5411f5b-186 (#186) CraftBukkit/Spigot version 4325-Bukkit-e4c92ef (MC: 1.21.1)
    • Yes

      Not sure if this is a BuildTools or CraftBukkit issue but I assume that BuildTools bundles the library files.

      Server will fail to start with the following error (no log file is written to):

      INFO Unpacking junit-platform-commons-1.10.2.jar (libraries:junit-platform-commons-1.10.2.jar) to /bundler/libraries/junit-platform-commons-1.10.2.jar
      INFO java.lang.IllegalStateException: Declared library junit-platform-commons-1.10.2.jar not found
      INFO at org.bukkit.craftbukkit.bootstrap.Main.extractJar(Main.java:111)

      Investigating the Jar file there is no `META-INF/libraries/junit-platform-commons-1.10.2.jar` file but there is a `META-INF/libraries/junit-platform-commons-1.10.0.jar` file.

      The `META-INF/libraries.list` file lists the following:

      b56a5ec000a479df4973b18bba24c98fe0db8faa14c8907d3ef451d8c71fd8ae *junit-platform-commons-1.10.2.jar

      So the 1.10.0 lib is being bundled but the 1.10.2 lib is being listed as a dependency.

      EditingĀ `libraries.list` and changing the filename to `junit-platform-commons-1.10.0.jar` will let the server start (The hash is not checked).

      The `dependencies-checksums.csv` in the CraftBukkit `target` folder lists the 1.10.2 version of the lib.

            Unassigned Unassigned
            Tiger_Walts Stuart Walton
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: