Hi Lucio,

You need to install any of following on your build machine. These are one time 
install and do not need internet connection. You can download ISO of VS and 
install.
These tools are necessary to build native C++ code in hadoop-common and 
hadoop-hdfs
1.Windows 7.1 SDK (Along with Microsoft Visual C++ 10)
OR
2. Windows 8.1 SDK with Visual Studio 2013 Express (If this is installed, 
follow instructions in 
http://zutai.blogspot.com/2014/06/build-install-and-run-hadoop-24-240-on.html?showComment=1422091525887#c2264594416650430988
 to upgrade Build files0

The above installation can be in any drive.
Just ensure that you use the command prompt given by SDK/Visual Studio. These 
command prompts will have paths set to msbuild.exe, cl.exe etc.
If you do not want to use these command prompt, then run the relevant batch 
files to set all ENV variable. These batch files can be found in the VS 
installation directory.
Eg:  "C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat" This batch files will set all 
relevant PATH


Maven needs internet connection to download the dependent POM and JARs.
If your build server is not having internet access, then you need to complete a 
successful build on some other machine and copy maven repo directory to build 
server.
While building you can instruct maven to work offline and  use the build 
directory you have copied.

Eg: you can add this option "-Drepo.dir=D:\maven_repo -o"  to mvn commands on 
build server




Regards,
Kiran
__________________________________________________________________________________________________________
This e-mail and its attachments contain confidential information from HUAWEI, 
which is intended only for the person or entity whose address is listed above. 
Any use of the information contained herein in any way (including, but not 
limited to, total or partial disclosure, reproduction, or dissemination) by 
persons other than the intended recipient(s) is prohibited. If you receive this 
e-mail in error, please notify the sender by phone or email immediately and 
delete it!
__________________________________________________________________________________________________________





> -----Original Message-----
> From: Lucio Crusca [mailto:[email protected]]
> Sent: Thursday, February 12, 2015 12:56
> To: [email protected]
> Subject: Re: Building for Windows
> 
> Though I've gone go one step further, the build now stops with the
> following
> error:
> 
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-
> plugin:1.2:exec
> (compile-ms-winutils) on project hadoop-common: Command execution
> failed.
> Cannot run program "msbuild"...
> 
> I'm running the build from the Windows  SDK command prompt, but
> msbuild.exe isn't on the PATH and it is actually missing in the whole
> C:.
> 
> I do have a msbuild.exe file on the Windows installation CD-ROM in
> 
> D:
> \sources\sxs\amd64_msbuild_b03f5f7f11d50a3a_3.5.9600.16384_none_ecc760d
> 4ddf5d348
> 
> but I prefer avoid using it directly, because I need a repeatable build
> procedure. This is a test drive, but I'll have to build hadoop on a
> production server that has no internet access, so I'd like to
> understand what should I do in order to have msbuild.exe in C:.
> 

Reply via email to