Fix cached Spigot dependencies never being used

Since plugins have not been downloaded, get always fails when running in offline mode.
This commit is contained in:
Jikoo
2021-10-16 19:16:08 -04:00
parent e3d9cea027
commit b4601bb6c1

View File

@@ -33,6 +33,11 @@ get_buildtools () {
readarray -t versions <<< "$(. ./scripts/get_spigot_versions.sh)"
echo Found Spigot dependencies: "${versions[@]}"
# Install dependencies aside from Spigot prior to running in offline mode.
# Note that the default SuperPOM declares maven-dependency-plugin 2.8.0.
# Unfortunately, we run into MDEP-204 and require a version >= 3.1.2.
mvn org.apache.maven.plugins:maven-dependency-plugin:3.2.0:go-offline -DexcludeArtifactIds=spigot
for version in "${versions[@]}"; do
set -e
exit_code=0