Fix maven warnings and prepare for publish.