After searching through various configuration files I finally found the solution to my problem.
The domains folder used by Maven / Cargo is defined in a pom.xml file that is in the grand-grandparent folder of the project directory.
In tut-install/examples/pom.xml you need to change the <glassfish.home>
property to reflect your glassfish installation directory.
In JAVA 8 EE a property called was introduced to serve the same purpose.
Settings defined in this pom.xml cascade down to all tutorial examples.