The workaround below should fix the issue with the SMF Repositories-Setup going into maintenance. Below is a workaround I used to address/fix the issue with the svc:/application/pkg/system-repository:default going in to maintenance. So I am to trying to install a zone on a fresh Solaris 11.4 server, by running the below.
zoneadm -z z1 install
The following ZFS file system(s) have been created:
Progress being logged to /var/log/zones/zoneadm.20180917T163026Z.z1.install
Image: Preparing at /system/zones/z1/root.
Error Unable to enable svc:/application/pkg/system-repository:default, please enable the service manually.
zoneadm: zone 'z1': ERROR:installation failed: zone switching to configured state
The following ZFS file systems are being removed:
Note: The Solaris server […]