Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: Replace ${AMBARI_VERSION} with the a 4-digit version you want the artifacts to be (e.g., -DnewVersion=1.56.0.1)

RHEL/Fedora/CentOS 5:

Code Block
#Fedora 18: You may have to install rpmbuild if its not already installed...
yum --enablerepo=updates-testing install rpm-build

mvn versions:set -DnewVersion=${AMBARI_VERSION}
mvn -B clean install package rpm:rpm -DnewVersion=${AMBARI_VERSION} -DskipTests -Pcentos5 -Dpython.ver="python26" -Preplaceurl
#Note: Or you can use '-Dpython.ver="python > 2.6' as an alternative, which seems to work better in at least one RHEL instance."

...