@shi cheng
In order to compile/build ambari with your own fixes, you will need to refer to the following documentation then you will be able to generate the RPMs that you can install on your machine.
- https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development
- Example:
# mvn versions:set -DnewVersion=${AMBARI_VERSION}
# mvn versions:set -DnewVersion=${AMBARI_VERSION}
# popd
# mvn clean package -DskipTests -Drat.skip
# mvn -B clean install package rpm:rpm -DskipTests -Dpython.ver="python >= 2.6" -Preplaceurl
- In order to build ambari-metrics
# cd ambari-metrics
# mvn clean package -Dbuild-rpm -DskipTests
.