Maven, Tools.jar, and Macs

On the Mac, was using some maven build scripts (well, ANT wrapped in Maven) recently that had references to tools.jar. This is problematical on the mac, since Apple repackages tools.jar (some bits go in Classes.jar) and ironic since some of the classes are already available, so it’s an unecessary error. Some digging revealed a recipe for using profiles to fix this: