aks [1] filed a deletion request for eclipse [2]: The current pkgbuild downloads all of the packages (instead of one). So, the loop should break after the required package is downloaded. Secondly, Java 11 should be the minimum requirement.
[1] https://aur.archlinux.org/account/aks/ [2] https://aur.archlinux.org/pkgbase/eclipse/
