fix bug with profiles in maven 3.2.2

@traiansf please review