WIP fix of fqdn not found (part 1)

Merge changes from https://gerrit.wikimedia.org/r/#/c/86212

and customize it to the dopa needs.
Installs maven in the developer role only

Change-Id: I7d2a65f731318ad524a2d4b754531fe1b066972c