brew-pull: don't fail to pull on Formula exception
requirements: add JavaDependency.

Requested in Homebrew/homebrew-science#1039.
Closes #30852.
dependency_collector: add :java symbol
hamsterdb: use JavaDependency.
mesos: use JavaDependency.
tomcat-native: use JavaDependency.
pylucene: use JavaDependency.