add -p option (fallback: auto-generate) for POM file, fix #1 and #3