Define the properties as arbitrary properties ... not the standard maven props such as version. In my case I defined a new property build.version:
build.version=unknown
I use the property:
${build.version}
I define the property:
mvn -P prod -Dbuild.version=app_name-branch_name-build_number package