GlowstoneMC / Glowstone

A fast, customizable and compatible open source server for Minecraft: Java Edition
https://glowstone.net
Other
1.89k stars 271 forks source link

./scripts/build.sh: readlink: illegal option -- f #971

Closed iceiix closed 5 years ago

iceiix commented 5 years ago

When I try to run the build script it fails with an illegal option error:

Glowstone $ ./scripts/build.sh 
readlink: illegal option -- f
usage: readlink [-n] [file ...]
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.054 s (Wall Clock)
[INFO] Finished at: 2018-11-03T18:08:33-07:00
[INFO] Final Memory: 14M/491M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/admin/projects). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException

macOS 10.14

aramperes commented 5 years ago

readlink -f is not supported on Mac. You can skip this step by simply using mvn -T 1C -B package in the root directory.

You can also install coreutils and use greadlink instead.