Uploaded image for project: 'BuildTools'
  1. BuildTools
  2. BUILDTOOLS-636

Failing to build Spigot 1.19 in recompile of maven-compiler-plugin:3.10.1 error must override or implement a supertype method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-BuildTools-668e05a-148 (#148)
    • Yes

      Trying to compile Spigot 1.19 (was using 1.18.2) using latest BuildTools

      java -jar BuildTools.jar --rev 1.19

      Tried using Windows Powershell as well as Git Bash.  Both fail at same spot.  See attached full log but here is error:

      [INFO] — maven-compiler-plugin:3.10.1:compile (default-compile) @ spigot —
      [INFO] Changes detected - recompiling the module!
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] C:\from 2008 server\Spigot Servers\Spigot New 1.19\Spigot\Spigot-Server\src\main\java\org\bukkit\craftbukkit\util\RandomSourceWrapper.java:[116,20] The method nextInt(int, int) of type org.bukkit.craftbukkit.util.RandomSourceWrapper.RandomWrapper must override or implement a supertype method
      [INFO] 1 error
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] Spigot-API 1.19-R0.1-SNAPSHOT ...................... SUCCESS [ 23.676 s]
      [INFO] Spigot-Parent dev-SNAPSHOT ......................... SUCCESS [  0.036 s]
      [INFO] Spigot 1.19-R0.1-SNAPSHOT .......................... FAILURE [ 22.682 s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  46.843 s
      [INFO] Finished at: 2022-07-04T19:59:34-04:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project spigot: Compilation failure
      [ERROR] C:\from 2008 server\Spigot Servers\Spigot New 1.19\Spigot\Spigot-Server\src\main\java\org\bukkit\craftbukkit\util\RandomSourceWrapper.java:[116,20] The method nextInt(int, int) of type org.bukkit.craftbukkit.util.RandomSourceWrapper.RandomWrapper must override or implement a supertype method
      [ERROR] 
      [ERROR] -> [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/MojoFailureException
      [ERROR] 
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :spigot
      Error compiling Spigot. Please check the wiki for FAQs.
      If this does not resolve your issue then please pastebin the entire BuildTools.log.txt file when seeking support.
      java.lang.RuntimeException: Error running command, return status !=0: [C:\from 2008 server\Spigot Servers\Spigot New 1.19\apache-maven-3.6.0/bin/mvn.cmd, -Dbt.name=3544, clean, install]
          at org.spigotmc.builder.Builder.runProcess0(Builder.java:973)
          at org.spigotmc.builder.Builder.runProcess(Builder.java:904)
          at org.spigotmc.builder.Builder.runMaven(Builder.java:873)
          at org.spigotmc.builder.Builder.main(Builder.java:709)
          at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27)

       

       

       

        1. Create Jar.bat
          0.3 kB
        2. BuildTools.log-JDK18Mavin386.txt
          49 kB
        3. BuildTools.log-2.txt
          49 kB
        4. BuildTools.log-1.txt
          49 kB
        5. BuildTools.log.txt
          48 kB

            Unassigned Unassigned
            steve@evanse.com Steve Evans
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: