fixing the maven builds for data and rest