1.先从Git取代码
git clone git://git.apache.org/hadoop-common.git
git clone git://git.apache.org/hadoop-common.git
2.下载Protocol Buffers 2.4.1
目前2.5.0还有问题,不能用。
Google Code上有编译好的Windows binary,下载下来放到PATH的路径里。
再把2.4.1的source下载下来,在java目录里面用maven编译。编译之前把protoc.exe拷贝到protobuf-2.4.1\src目录里面
3.运行Visual Studio命令工具
就是运行一下%comspec% /k ""????\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"" ????
不然maven里面msbuild没法执行
4.然后就开始build吧
mvn install -DskipTests