The tag
<scope>test</scope>
is missing from a few entries in the pom.xml for hadoop-yarn-server-resourcemanager.