Fix #11 - inherited version/groupId

IDEs tend to encourage version and groupid to be blank if they
track the parent. If people do this, the code breaks, so this fixes this.
Based on a change request from https://github.com/rrialq

Change-Id: I345d461488cb9f1b713b7d41adf0fa2488d97e06