Add a maven build and a maven plugin

See sync to central request https://issues.sonatype.org/browse/OSSRH-6465