Refactor shared properties and plugin logic into oss-parent.

Revert changes to .gitignore now that generated sources are under target/ dir.

Now depends on com.fasterxml oss-parent 5-SNAPSHOT.
Add a unit test.