[BUILDTOOLS-639] Unable to build MC versions 1.10.2 and older Created: 08/Nov/22  Updated: 25/Dec/24  Resolved: 09/Nov/22

Status: Resolved
Project: BuildTools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: datatags Assignee: Doc
Resolution: Fixed Votes: 0
Labels: None
Environment:

Debian 11

openjdk version "1.8.0_345"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_345-b01)
OpenJDK 64-Bit Server VM (Temurin)(build 25.345-b01, mixed mode)


Version: Loading BuildTools version: git-BuildTools-a45f2fe-149 (#149)
Guidelines Read: Yes

 Description   

Using BuildTools in a fresh directory, I'm unable to build Spigot for any Minecraft versions 1.10.2 and under. I receive this message:

 

 

Attempting to build Minecraft with details: VersionInfo(minecraftVersion=1.10.2, accessTransforms=bukkit-1.10.2.at, classMappings=bukkit-1.10.2-cl.csrg, memberMappings=bukkit-1.10.2-members.csrg, packageMappings=package.srg, minecraftHash=41c4e081defd80b09cb0391c894c2f3c, classMapCommand=null, memberMapCommand=null, finalMapCommand=null, decompileCommand=java -jar BuildData/bin/fernflower.jar -dgs=1 -hdc=0 -asc=1 -udv=0 {0} {1}, serverUrl=null, mappingsUrl=null, spigotVersion=null, toolsVersion=0)
Starting download of https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1902)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1500)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
        at java.net.URL.openStream(URL.java:1093)
        at com.google.common.io.Resources$UrlByteSource.openStream(Resources.java:72)
        at com.google.common.io.ByteSource.read(ByteSource.java:296)
        at com.google.common.io.Resources.toByteArray(Resources.java:98)
        at org.spigotmc.builder.Builder.download(Builder.java:1083)
        at org.spigotmc.builder.Builder.main(Builder.java:416)
        at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27) 

This doesn't happen with more recent versions, such as 1.11.2, where it downloads the vanilla jars from launcher.mojang.com instead.

 

 



 Comments   
Comment by Doc [ 09/Nov/22 ]

looks like mojang deprecate the S3 url for servers... i make a PR for replace this logic for old servers.

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/buildtools/pull-requests/46/overview

Generated at Sun Mar 23 01:24:40 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.