When trying to enable a build of CDH4 in Jenkins, I got a build error due to an attempt to download Tomcat from the internet directly instead of via Maven and thus our internal Maven repository.
The problem is due to this line in src/hadoop-hdfs-project/hadoop-hdfs-httpfs/target/antrun/build-main.xml:
<get dest="downloads/tomcat.tar.gz" skipexisting="true" verbose="true" src="http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.32/bin/apache-tomcat-6.0.32.tar.gz"/>
This build.xml is generated from src/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml:
.tar.gz" dest="downloads/tomcat.tar.gz" verbose="true" skipexisting="true"/>
Instead of directly downloading from a hardcoded location, the Tomcat dependency should be managed by Maven. This would enable the use of a local repository for build machines without internet access.