updated the release scritp to only release in maven