in addition to skipTests you want to add "native-win" profile > mvn clean package -Pdist,native-win -DskipTests -Dtar
this command must be run from a Windows SDK command prompt (not cygwin) as documented in BUILDING.txt. A successful build generates a binary hadoop .tar.gz package in hadoop-dist\target\. https://wiki.apache.org/hadoop/Hadoop2OnWindows https://svn.apache.org/viewvc/hadoop/common/branches/branch-2/BUILDING.txt?view=markup On Wed, Feb 11, 2015 at 3:09 PM, Alexander Pivovarov <[email protected]> wrote: > try > > mvn package -Pdist -Dtar -DskipTests > > On Wed, Feb 11, 2015 at 2:02 PM, Lucio Crusca <[email protected]> wrote: > >> Hello everybody, >> >> I'm absolutely new to hadoop and a customer asked me to build version 2.6 >> for >> Windows Server 2012 R2. I'm myself a java programmer, among other things, >> but >> I've never used hadoop before. >> >> I've downloaded and installed JDK7, Maven, Cygwin (for sh, mv, gzip, ...) >> and >> other toys specified in the BUILDING.txt file bundled with hadoop >> sources. I >> also set the PATH and other environment variables (JAVA_HOME, ZLIB_HOME, >> Platform, ...). >> >> Running >> >> mvn package -Pdist -Dtar >> >> it compiles everything till MiniKDC included, but then it fails a test >> after >> compiling Auth. >> >> Here you can see the full output of the mvn command: >> >> http://hastebin.com/aqixebojuv.tex >> >> Can you help me understand what I'm doing wrong? >> >> Thanks in advance >> Lucio. >> > >
