properly configure Maven plugin and add example