Add warnings to the maven build in the example.

Should probably write an integration test that asserts that our generated code doesn't generate warning-prone code.  But for another CL when the warnings are actually fixed.