Fix build issue because target platforms cannot be found when using newer maven plugin