Re: hadoop-common Maven build failed on Windows due to too long command line for classpath

2017-08-10 Thread Brahma Reddy Battula
Glad to hear that it's worked for you. On Thu, 10 Aug 2017 at 1:51 AM, Ping Liu wrote: > Hi Brahma, > > I tried your way. I think it works! Although there is some other issue > coming up (which I need fix later), the build process doesn't complain for > too long

Re: hadoop-common Maven build failed on Windows due to too long command line for classpath

2017-08-09 Thread Allen Wittenauer
It’s probably worth pointing out that as soon as the native-maven-plugin gets an update, we’ll be able to have a longer path. Unfortunately, like leveldbjni-all, it’s effectively dead as far as updates; the fix was committed in 2014 and there hasn’t been an update since. As a

Re: hadoop-common Maven build failed on Windows due to too long command line for classpath

2017-08-09 Thread Ping Liu
Hi Brahma, I tried your way. I think it works! Although there is some other issue coming up (which I need fix later), the build process doesn't complain for too long command line any more. My previous default maverepo is C:\Users\Ping\.m2\repository and now is changed to D:\mavenrepo. Yes, I

RE: hadoop-common Maven build failed on Windows due to too long command line for classpath

2017-08-09 Thread Brahma Reddy Battula
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

hadoop-common Maven build failed on Windows due to too long command line for classpath

2017-08-09 Thread Ping Liu
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