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

Transitive dependencies from plugin.yml libraries not downloading or loading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • Windows 10

      java 17.0.1 2021-10-19 LTS
      Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
      Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

    • CraftBukkit version 3809-Spigot-c62f4bd-fcff84d (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT)
    • Yes

      On CraftBukkit version 3755-Spigot-7d7b241-b346a5f (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) transitive dependencies are loaded for libraries listed in the plugin.yml. When upgrading to CraftBukkit version 3809-Spigot-c62f4bd-fcff84d (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) transitive dependencies are no longer loaded.

      Under attachments is a plugin to demonstrate this behavior as well as the plugin.yml used in the attached plugin.

      My guess is that is has something to do with the upgrading of maven resolver dependencies: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/diff/pom.xml?until=3635fe1a771a768acc67a9ab8b3ea184fc724bae 

      plugin.yml

      name: ReproductionPlugin
      version: '1.0-SNAPSHOT'
      main: me.luukth.reproductionplugin.ReproductionPlugin
      api-version: 1.19
      libraries:
        - com.google.inject:guice:5.0.1
      

      Console log from 1.19.4

      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/inject/guice/5.0.1/guice-5.0.1.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/inject/guice-parent/5.0.1/guice-parent-5.0.1.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/google/5/google-5.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/guava-parent/30.1-jre/guava-parent-30.1-jre.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/guava-parent/26.0-android/guava-parent-26.0-android.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
      [11:30:53] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.pom
      [11:30:54] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom
      [11:30:54] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
      [11:30:54] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/3.5.0/checker-qual-3.5.0.pom
      [11:30:54] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.pom
      [11:30:54] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_parent/2.3.4/error_prone_parent-2.3.4.pom
      [11:30:54] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.pom
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-1/INFO]: Downloading https://repo.maven.apache.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-0/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/inject/guice/5.0.1/guice-5.0.1.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-4/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-3/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-2/INFO]: Downloading https://repo.maven.apache.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-1/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-4/INFO]: Downloading https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/3.5.0/checker-qual-3.5.0.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-2/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-1/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.jar
      [11:30:54] [BasicRepositoryConnector-repo.maven.apache.org-0-2/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\inject\guice\5.0.1\guice-5.0.1.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\javax\inject\javax.inject\1\javax.inject-1.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\guava\guava\30.1-jre\guava-30.1-jre.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\org\checkerframework\checker-qual\3.5.0\checker-qual-3.5.0.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar
      [11:30:54] [Server thread/INFO]: [ReproductionPlugin] Loading ReproductionPlugin v1.0-SNAPSHOT

       

      Console log from 1.20.1

      [11:30:05] [Server thread/INFO]: [ReproductionPlugin] Loading 1 libraries... please wait
      [11:30:05] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/inject/guice/5.0.1/guice-5.0.1.pom
      [11:30:06] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/inject/guice-parent/5.0.1/guice-parent-5.0.1.pom
      [11:30:06] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/google/5/google-5.pom
      [11:30:06] [Server thread/INFO]: Downloading https://repo.maven.apache.org/maven2/com/google/inject/guice/5.0.1/guice-5.0.1.jar
      [11:30:06] [Server thread/INFO]: [ReproductionPlugin] Loaded library C:\Users\luuk\Documenten\Minecraft\Code Server\libraries\com\google\inject\guice\5.0.1\guice-5.0.1.jar
      [11:30:06] [Server thread/INFO]: [ReproductionPlugin] Loading ReproductionPlugin v1.0-SNAPSHOT

        1. console.1.19.4.log
          6 kB
        2. console.1.20.1.log
          0.9 kB
        3. plugin.yml
          0.2 kB
        4. reproductionplugin.zip
          2 kB
        5. reproductionplugin-1.0-SNAPSHOT.jar
          3 kB

            Unassigned Unassigned
            Luukth Luuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: