It might be problem with maven repo path, may be you can change to shorter path and check once.
Example: mvn clean install -DskipTests -Dmaven.repo.local=C:\MavenRepo Reference: http://lucene.472066.n3.nabble.com/Problems-compiling-hadoop-trunk-on-windows-td4317688.html just googled with "The command line is too long + brahma reddy",got the above link..:) --Brahma Reddy Battula -----Original Message----- From: Ping Liu [mailto:pingpinga...@gmail.com] Sent: 09 August 2017 16:38 To: common-dev@hadoop.apache.org Subject: hadoop-common Maven build failed on Windows due to too long command line for classpath I cannot make Maven build on hadoop-common successful on Windows. The error shows as follows. ... [INFO] --- native-maven-plugin:1.0-alpha-8:javah (default) @ hadoop-common --- [INFO] cmd.exe /X /C "D:\a\tools\java\jdk1.8.0_45\bin\javah -d D:\apache\hadoop\hadoop-common-project\hadoop-common\target\native\javah -classpath D:\apache\hadoop\hadoop-common-project\hadoop-common\target\classes;... ... ... ... The command line is too long. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Hadoop Common ............................... FAILURE [01:35 min] [INFO] Apache Hadoop NFS .................................. SKIPPED ... The reason is Maven, when running on Windows, can't take too long command line for classpaths for all the dependencies in local Maven repository. I have been exhausted on Google and finally am hoping I can get a quick help directly from the mailing list. Anyone has any idea about this? Any help is appreciated! Ping