[MacPorts] #45035: Refactor the Maven ports