This tutorial was made due to the sheer amount of errors when compiling 1.7.10-era server software. Now we can finally make clean builds easily again.
We need this since it is a dependency.
git clone https://github.com/Bukkit/Bukkit.git cd Bukkit
pom.xmlThis will remove the outdated & unnecessary repos.
sed -i '25,38d' pom.xml
This will fix the JDK version.
sed -i 's,<source>1.6</source>,<source>1.8</source>,g' pom.xml sed -i 's,<target>1.6</target>,<target>1.8</target>,g' pom.xml
mvn install
Make sure to cd .. after installing Bukkit!
This will clone an unmodified fork used by Paper.
git clone https://github.com/zachbr/CraftBukkit.git cd CraftBukkit
pom.xmlThis will remove Overmapped, which deals with mappings. It breaks when compiling.
sed -i '324,341d' pom.xml
This will remove the outdated repos, and add Paper's repo.
sed -i '28,37d;41,44d;48,51d' pom.xml sed -i 's,</repositories>,<repository><id>papermc</id><url>https://repo.papermc.io/repository/maven-public/</url></repository></repositories>,g' pom.xml
This will fix the JDK version.
sed -i 's,<source>1.6</source>,<source>1.8</source>,g' pom.xml sed -i 's,<target>1.6</target>,<target>1.8</target>,g' pom.xml
mvn package