Fix compile errors thanks to @fr1zle. Requires Maven 3.1.x.
Add deployment to Travis-CI configuration.