I suspect you are passing -Dexample=domain.configs to the build script when you build the entire AS. If that's it, first build the AS and then cd into the demos dir and run the demos. from the root of the source checkout:
$ ./build.sh
$ cd demos
$ mvn install -Dexample=domain.configs