largely copied from sql-maven-plugin, some properties-maven-plugin thrown in for good measure