Make the packaged examples work

* Fixes the packaging issue where the pom.xml was incorrect (#13454)
* Refactor to use the latest API tweaks ($(…).$(…) instead of $(…).in(…), etc)

Change-Id: Ib4f1c46ef5310f75e82323e30675ec4776f2309c