Fix bug in generatePom

Was removing more than last '.' from some plugin names