[SPARK-1760]: fix building spark with maven documentation
[SPARK-1760]: fix building spark with maven documentation

Author: witgo <witgo@qq.com>

Closes #712 from witgo/building-with-maven and squashes the following commits:

215523b [witgo] fix building spark with maven documentation

ahnqirage/spark,taroplus/spark,byakuinss/spark,highfei2011/spark,michalsenkyr/spark,yanboliang/spark,patrick-nicholson/spark,jkbradley/spark,andrewor14/iolap,pronix/spark,Aegeaner/spark,hvanhovell/spark,1haodian/spark,actuaryzhang/spark,xflin/spark,taroplus/spark,big-pegasus/spark,BryanCutler/spark,MLnick/spark,pgandhi999/spark,gioenn/xSpark,SHASHANKB/spark,aokolnychyi/spark,narahari92/spark,aosagie/spark,taroplus/spark,setjet/spark,rekhajoshm/spark,hvanhovell/spark,minixalpha/spark,janewangfb/spark,guoxiaolongzte/spark,zzcclp/spark,darionyaphet/spark,apache/spark,joseph-torres/spark,milliman/spark,JerryLead/spark,lvdongr/spark,shubhamchopra/spark,markhamstra/spark,liyichao/spark,metamx/spark,bdrillard/spark,highfei2011/spark,chuckchen/spark,mdespriee/spark,ajaysaini725/spark,zzcclp/spark,cloud-fan/spark,markhamstra/spark,shubhamchopra/spark,big-pegasus/spark,kissmetrics/spark,jrshust/spark,darionyaphet/spark,dongjoon-hyun/spark,aray/spark,kissmetrics/spark,nilsgrabbert/spark,huang1900/spark,techaddict/spark,taroplus/spark,akopich/spark,shaneknapp/spark,bdrillard/spark,ericvandenbergfb/spark,kimoonkim/spark,bOOm-X/spark,tengpeng/spark,panfengfeng/spark,kimoonkim/spark,zhouyejoe/spark,setjet/spark,panfengfeng/spark,ioana-delaney/spark,UndeadBaneGitHub/spark,pronix/spark,nlalevee/spark,mahak/spark,ericvandenbergfb/spark,ahnqirage/spark,mike0sv/spark,icexelloss/spark,witgo/spark,ajaysaini725/spark,metamx/spark,JoshRosen/spark,jlopezmalla/spark,WeichenXu123/spark,srowen/spark,WindCanDie/spark,MLnick/spark,rezasafi/spark,spark-test/spark,someorz/spark,adrian-ionescu/apache-spark,Aegeaner/spark,bOOm-X/spark,ConeyLiu/spark,jiangxb1987/spark,ajaysaini725/spark,bOOm-X/spark,xflin/spark,cin/spark,markhamstra/spark,liutang123/spark,aosagie/spark,WindCanDie/spark,hvanhovell/spark,Aegeaner/spark,actuaryzhang/spark,kissmetrics/spark,milliman/spark,pronix/spark,guoxiaolongzte/spark,ptkool/spark,holdenk/spark,Panos-Bletsos/spark-cost-model-optimizer,mdespriee/spark,tejasapatil/spark,hhbyyh/spark,ioana-delaney/spark,dongjoon-hyun/spark,rezasafi/spark,UndeadBaneGitHub/spark,cin/spark,jlopezmalla/spark,HyukjinKwon/spark,sachintyagi22/spark,caneGuy/spark,mike0sv/spark,Aegeaner/spark,jkbradley/spark,map222/spark,ConeyLiu/spark,akopich/spark,wzhfy/spark,joseph-torres/spark,dhruve/spark,nlalevee/spark,mdespriee/spark,kissmetrics/spark,cloud-fan/spark,xuanyuanking/spark,Panos-Bletsos/spark-cost-model-optimizer,ron8hu/spark,poffuomo/spark,narahari92/spark,liyichao/spark,brad-kaiser/spark,metamx/spark,goldmedal/spark,zero323/spark,gioenn/xSpark,map222/spark,andrewor14/iolap,facaiy/spark,ahnqirage/spark,mzl9039/spark,vinodkc/spark,ddna1021/spark,jkbradley/spark,witgo/spark,nchammas/spark,cin/spark,apache/spark,milliman/spark,goldmedal/spark,alunarbeach/spark,milliman/spark,big-pegasus/spark,setjet/spark,ueshin/apache-spark,aray/spark,srowen/spark,dbtsai/spark,andrewor14/iolap,shuangshuangwang/spark,SnappyDataInc/spark,bravo-zhang/spark,techaddict/spark,mzl9039/spark,liutang123/spark,ericvandenbergfb/spark,rezasafi/spark,rekhajoshm/spark,brad-kaiser/spark,skonto/spark,apache-spark-on-k8s/spark,bdrillard/spark,aray/spark,vinodkc/spark,kevinyu98/spark,HyukjinKwon/spark,SHASHANKB/spark,guoxiaolongzte/spark,haowu80s/spark,kiszk/spark,jiangxb1987/spark,kevinyu98/spark,kiszk/spark,michalsenkyr/spark,ibm-research-ireland/sparkoscope,akopich/spark,panfengfeng/spark,jlopezmalla/spark,mzl9039/spark,szhem/spark,WindCanDie/spark,maropu/spark,milliman/spark,minixalpha/spark,actuaryzhang/spark,alunarbeach/spark,stanzhai/spark,gengliangwang/spark,lvdongr/spark,loneknightpy/spark,byakuinss/spark,loneknightpy/spark,aosagie/spark,zhouyejoe/spark,gengliangwang/spark,maropu/spark,cin/spark,saltstar/spark,xuanyuanking/spark,jrshust/spark,lvdongr/spark,shaneknapp/spark,rekhajoshm/spark,holdenk/spark,yanboliang/spark,eyalfa/spark,sachintyagi22/spark,janewangfb/spark,gioenn/xSpark,stanzhai/spark,ron8hu/spark,goldmedal/spark,rednaxelafx/apache-spark,shaneknapp/spark,dhruve/spark,MLnick/spark,stanzhai/spark,facaiy/spark,poffuomo/spark,szhem/spark,pgandhi999/spark,darionyaphet/spark,SHASHANKB/spark,saturday-shi/spark,zuotingbing/spark,MLnick/spark,akopich/spark,hvanhovell/spark,ddna1021/spark,JoshRosen/spark,witgo/spark,nchammas/spark,darionyaphet/spark,minixalpha/spark,ddna1021/spark,maropu/spark,aosagie/spark,gioenn/xSpark,huang1900/spark,zuotingbing/spark,map222/spark,liyichao/spark,highfei2011/spark,WindCanDie/spark,pgandhi999/spark,kevinyu98/spark,zero323/spark,nilsgrabbert/spark,metamx/spark,eyalfa/spark,chuckchen/spark,Aegeaner/spark,SHASHANKB/spark,shaneknapp/spark,bOOm-X/spark,MLnick/spark,caneGuy/spark,shuangshuangwang/spark,xflin/spark,dhruve/spark,akopich/spark,pgandhi999/spark,highfei2011/spark,huang1900/spark,shuangshuangwang/spark,adrian-ionescu/apache-spark,minixalpha/spark,michalsenkyr/spark,ueshin/apache-spark,wangmiao1981/spark,SnappyDataInc/spark,nilsgrabbert/spark,BryanCutler/spark,rikima/spark,stanzhai/spark,SnappyDataInc/spark,JoshRosen/spark,skonto/spark,zero323/spark,HyukjinKwon/spark,zuotingbing/spark,dbtsai/spark,WeichenXu123/spark,WindCanDie/spark,rezasafi/spark,gioenn/xSpark,panfengfeng/spark,mahak/spark,facaiy/spark,joseph-torres/spark,LantaoJin/spark,saturday-shi/spark,map222/spark,bdrillard/spark,andrewor14/iolap,jrshust/spark,icexelloss/spark,kimoonkim/spark,haowu80s/spark,ron8hu/spark,caneGuy/spark,huang1900/spark,ptkool/spark,rikima/spark,jrshust/spark,patrick-nicholson/spark,bravo-zhang/spark,zhouyejoe/spark,apache-spark-on-k8s/spark,mahak/spark,dongjoon-hyun/spark,zhouyejoe/spark,janewangfb/spark,saturday-shi/spark,liyichao/spark,shubhamchopra/spark,SHASHANKB/spark,esi-mineset/spark,jlopezmalla/spark,nlalevee/spark,pgandhi999/spark,shaneknapp/spark,nilsgrabbert/spark,bravo-zhang/spark,mike0sv/spark,chuckchen/spark,WeichenXu123/spark,wzhfy/spark,ahnqirage/spark,Panos-Bletsos/spark-cost-model-optimizer,gioenn/xSpark,michalsenkyr/spark,shubhamchopra/spark,nchammas/spark,szhem/spark,aokolnychyi/spark,lxsmnv/spark,rednaxelafx/apache-spark,brad-kaiser/spark,vinodkc/spark,poffuomo/spark,xflin/spark,zero323/spark,alunarbeach/spark,LantaoJin/spark,tengpeng/spark,ueshin/apache-spark,apache/spark,hvanhovell/spark,panfengfeng/spark,tejasapatil/spark,saturday-shi/spark,apache-spark-on-k8s/spark,holdenk/spark,rednaxelafx/apache-spark,taroplus/spark,highfei2011/spark,kiszk/spark,dbtsai/spark,patrick-nicholson/spark,saturday-shi/spark,wzhfy/spark,darionyaphet/spark,ddna1021/spark,cloud-fan/spark,jianran/spark,MLnick/spark,actuaryzhang/spark,andrewor14/iolap,milliman/spark,debugger87/spark,debugger87/spark,goldmedal/spark,brad-kaiser/spark,Aegeaner/spark,1haodian/spark,zuotingbing/spark,saltstar/spark,jianran/spark,minixalpha/spark,publicRoman/spark,kiszk/spark,wzhfy/spark,lxsmnv/spark,debugger87/spark,patrick-nicholson/spark,guoxiaolongzte/spark,joseph-torres/spark,zzcclp/spark,aosagie/spark,apache-spark-on-k8s/spark,ioana-delaney/spark,ajaysaini725/spark,haowu80s/spark,janewangfb/spark,sahilTakiar/spark,JerryLead/spark,HyukjinKwon/spark,rezasafi/spark,goldmedal/spark,ioana-delaney/spark,1haodian/spark,rikima/spark,mahak/spark,big-pegasus/spark,witgo/spark,someorz/spark,techaddict/spark,sahilTakiar/spark,apache/spark,vinodkc/spark,ueshin/apache-spark,UndeadBaneGitHub/spark,LantaoJin/spark,hhbyyh/spark,cloud-fan/spark,shaneknapp/spark,witgo/spark,shuangshuangwang/spark,techaddict/spark,bOOm-X/spark,hhbyyh/spark,xuanyuanking/spark,bravo-zhang/spark,ConeyLiu/spark,byakuinss/spark,panfengfeng/spark,liyichao/spark,jkbradley/spark,icexelloss/spark,sureshthalamati/spark,wangmiao1981/spark,publicRoman/spark,lxsmnv/spark,andrewor14/spark,yanboliang/spark,nchammas/spark,nlalevee/spark,ahnqirage/spark,sureshthalamati/spark,ajaysaini725/spark,goldmedal/spark,ron8hu/spark,zero323/spark,esi-mineset/spark,bOOm-X/spark,someorz/spark,caneGuy/spark,ibm-research-ireland/sparkoscope,narahari92/spark,someorz/spark,setjet/spark,rikima/spark,tejasapatil/spark,JerryLead/spark,darionyaphet/spark,metamx/spark,shubhamchopra/spark,xflin/spark,spark-test/spark,ueshin/apache-spark,ron8hu/spark,wangyum/spark,ptkool/spark,holdenk/spark,zhouyejoe/spark,debugger87/spark,mzl9039/spark,mzl9039/spark,maropu/spark,lxsmnv/spark,hhbyyh/spark,techaddict/spark,caneGuy/spark,shuangshuangwang/spark,mdespriee/spark,rekhajoshm/spark,WindCanDie/spark,tengpeng/spark,milliman/spark,loneknightpy/spark,wangyum/spark,WeichenXu123/spark,andrewor14/spark,WeichenXu123/spark,sachintyagi22/spark,vinodkc/spark,alunarbeach/spark,darionyaphet/spark,tengpeng/spark,kevinyu98/spark,aokolnychyi/spark,chuckchen/spark,bravo-zhang/spark,SnappyDataInc/spark,JoshRosen/spark,mahak/spark,aokolnychyi/spark,kissmetrics/spark,HyukjinKwon/spark,bdrillard/spark,Panos-Bletsos/spark-cost-model-optimizer,ajaysaini725/spark,rednaxelafx/apache-spark,LantaoJin/spark,kissmetrics/spark,markhamstra/spark,chuckchen/spark,aosagie/spark,sureshthalamati/spark,narahari92/spark,kimoonkim/spark,tengpeng/spark,saturday-shi/spark,ConeyLiu/spark,adrian-ionescu/apache-spark,akopich/spark,sachintyagi22/spark,gioenn/xSpark,michalsenkyr/spark,HyukjinKwon/spark,highfei2011/spark,andrewor14/spark,aray/spark,jrshust/spark,rikima/spark,saltstar/spark,ioana-delaney/spark,loneknightpy/spark,lvdongr/spark,ueshin/apache-spark,aosagie/spark,rekhajoshm/spark,jianran/spark,sureshthalamati/spark,lvdongr/spark,liyichao/spark,byakuinss/spark,bdrillard/spark,narahari92/spark,guoxiaolongzte/spark,yanboliang/spark,icexelloss/spark,michalsenkyr/spark,jkbradley/spark,publicRoman/spark,cloud-fan/spark,eyalfa/spark,nlalevee/spark,jlopezmalla/spark,1haodian/spark,big-pegasus/spark,michalsenkyr/spark,dbtsai/spark,poffuomo/spark,lxsmnv/spark,cin/spark,minixalpha/spark,sahilTakiar/spark,kiszk/spark,xflin/spark,rekhajoshm/spark,ptkool/spark,ddna1021/spark,jianran/spark,map222/spark,jrshust/spark,icexelloss/spark,eyalfa/spark,guoxiaolongzte/spark,ibm-research-ireland/sparkoscope,LantaoJin/spark,Panos-Bletsos/spark-cost-model-optimizer,metamx/spark,brad-kaiser/spark,xuanyuanking/spark,BryanCutler/spark,actuaryzhang/spark,andrewor14/iolap,tejasapatil/spark,esi-mineset/spark,narahari92/spark,wangmiao1981/spark,ConeyLiu/spark,mike0sv/spark,ioana-delaney/spark,BryanCutler/spark,skonto/spark,bravo-zhang/spark,mahak/spark,zzcclp/spark,srowen/spark,SnappyDataInc/spark,facaiy/spark,adrian-ionescu/apache-spark,nilsgrabbert/spark,srowen/spark,icexelloss/spark,andrewor14/spark,matthewfranglen/spark,nchammas/spark,maropu/spark,srowen/spark,cloud-fan/spark,patrick-nicholson/spark,brad-kaiser/spark,hhbyyh/spark,szhem/spark,chuckchen/spark,dhruve/spark,WeichenXu123/spark,vinodkc/spark,taroplus/spark,aray/spark,yanboliang/spark,stanzhai/spark,spark-test/spark,byakuinss/spark,nlalevee/spark,ahnqirage/spark,apache-spark-on-k8s/spark,yanboliang/spark,andrewor14/spark,gengliangwang/spark,srowen/spark,sureshthalamati/spark,cin/spark,joseph-torres/spark,sahilTakiar/spark,lvdongr/spark,tengpeng/spark,pgandhi999/spark,holdenk/spark,mzl9039/spark,skonto/spark,nilsgrabbert/spark,facaiy/spark,LantaoJin/spark,goldmedal/spark,narahari92/spark,zuotingbing/spark,jiangxb1987/spark,kissmetrics/spark,hvanhovell/spark,szhem/spark,mzl9039/spark,joseph-torres/spark,huang1900/spark,metamx/spark,big-pegasus/spark,dbtsai/spark,ddna1021/spark,ibm-research-ireland/sparkoscope,rednaxelafx/apache-spark,mahak/spark,aokolnychyi/spark,pronix/spark,markhamstra/spark,sachintyagi22/spark,saltstar/spark,jlopezmalla/spark,debugger87/spark,aokolnychyi/spark,haowu80s/spark,liyichao/spark,zhouyejoe/spark,actuaryzhang/spark,zzcclp/spark,kimoonkim/spark,debugger87/spark,shuangshuangwang/spark,dongjoon-hyun/spark,eyalfa/spark,jiangxb1987/spark,ericvandenbergfb/spark,spark-test/spark,xuanyuanking/spark,shubhamchopra/spark,map222/spark,holdenk/spark,liutang123/spark,caneGuy/spark,byakuinss/spark,ueshin/apache-spark,maropu/spark,SnappyDataInc/spark,poffuomo/spark,mdespriee/spark,dhruve/spark,rikima/spark,ptkool/spark,yanboliang/spark,jiangxb1987/spark,stanzhai/spark,UndeadBaneGitHub/spark,jiangxb1987/spark,techaddict/spark,dhruve/spark,apache/spark,ron8hu/spark,BryanCutler/spark,ddna1021/spark,chuckchen/spark,gengliangwang/spark,vinodkc/spark,zuotingbing/spark,stanzhai/spark,eyalfa/spark,andrewor14/spark,kiszk/spark,hhbyyh/spark,poffuomo/spark,apache-spark-on-k8s/spark,sahilTakiar/spark,cloud-fan/spark,saltstar/spark,lxsmnv/spark,tejasapatil/spark,facaiy/spark,dhruve/spark,sachintyagi22/spark,eyalfa/spark,skonto/spark,mdespriee/spark,akopich/spark,liutang123/spark,skonto/spark,wangmiao1981/spark,rednaxelafx/apache-spark,huang1900/spark,someorz/spark,lvdongr/spark,jkbradley/spark,ajaysaini725/spark,tejasapatil/spark,zhouyejoe/spark,alunarbeach/spark,taroplus/spark,sahilTakiar/spark,holdenk/spark,joseph-torres/spark,jiangxb1987/spark,lxsmnv/spark,szhem/spark,wangmiao1981/spark,jianran/spark,gengliangwang/spark,dongjoon-hyun/spark,ericvandenbergfb/spark,adrian-ionescu/apache-spark,icexelloss/spark,ConeyLiu/spark,gengliangwang/spark,setjet/spark,wangyum/spark,facaiy/spark,loneknightpy/spark,jianran/spark,kevinyu98/spark,alunarbeach/spark,poffuomo/spark,panfengfeng/spark,haowu80s/spark,Aegeaner/spark,ahnqirage/spark,loneknightpy/spark,dongjoon-hyun/spark,saltstar/spark,spark-test/spark,JoshRosen/spark,zero323/spark,techaddict/spark,zzcclp/spark,byakuinss/spark,markhamstra/spark,brad-kaiser/spark,aray/spark,wzhfy/spark,publicRoman/spark,nchammas/spark,pronix/spark,tejasapatil/spark,setjet/spark,big-pegasus/spark,patrick-nicholson/spark,SHASHANKB/spark,zzcclp/spark,tengpeng/spark,ptkool/spark,wangyum/spark,JoshRosen/spark,JerryLead/spark,rezasafi/spark,maropu/spark,esi-mineset/spark,alunarbeach/spark,WeichenXu123/spark,jkbradley/spark,ericvandenbergfb/spark,publicRoman/spark,HyukjinKwon/spark,1haodian/spark,bravo-zhang/spark,wangmiao1981/spark,janewangfb/spark,wzhfy/spark,huang1900/spark,guoxiaolongzte/spark,srowen/spark,ptkool/spark,wzhfy/spark,WindCanDie/spark,LantaoJin/spark,publicRoman/spark,ibm-research-ireland/sparkoscope,aokolnychyi/spark,wangyum/spark,spark-test/spark,nchammas/spark,bOOm-X/spark,sureshthalamati/spark,mike0sv/spark,jrshust/spark,ioana-delaney/spark,JoshRosen/spark,BryanCutler/spark,markhamstra/spark,pronix/spark,rezasafi/spark,map222/spark,caneGuy/spark,hhbyyh/spark,SHASHANKB/spark,liutang123/spark,UndeadBaneGitHub/spark,Panos-Bletsos/spark-cost-model-optimizer,kimoonkim/spark,shuangshuangwang/spark,janewangfb/spark,janewangfb/spark,JerryLead/spark,dongjoon-hyun/spark,someorz/spark,UndeadBaneGitHub/spark,liutang123/spark,BryanCutler/spark,highfei2011/spark,rednaxelafx/apache-spark,esi-mineset/spark,saltstar/spark,apache-spark-on-k8s/spark,mike0sv/spark,xflin/spark,mike0sv/spark,kiszk/spark,skonto/spark,kevinyu98/spark,hvanhovell/spark,apache/spark,Panos-Bletsos/spark-cost-model-optimizer,rikima/spark,adrian-ionescu/apache-spark,JerryLead/spark,witgo/spark,nlalevee/spark,1haodian/spark,wangmiao1981/spark,actuaryzhang/spark,spark-test/spark,szhem/spark,MLnick/spark,zuotingbing/spark,apache/spark,bdrillard/spark,debugger87/spark,cin/spark,jlopezmalla/spark,haowu80s/spark,gengliangwang/spark,jianran/spark,shubhamchopra/spark,patrick-nicholson/spark,wangyum/spark,ConeyLiu/spark,liutang123/spark,rekhajoshm/spark,adrian-ionescu/apache-spark,mdespriee/spark,esi-mineset/spark,sachintyagi22/spark,JerryLead/spark,nilsgrabbert/spark,saturday-shi/spark,ericvandenbergfb/spark,ron8hu/spark,ibm-research-ireland/sparkoscope,1haodian/spark,aray/spark,sahilTakiar/spark,wangyum/spark,someorz/spark,xuanyuanking/spark,esi-mineset/spark,shaneknapp/spark,dbtsai/spark,minixalpha/spark,kimoonkim/spark,UndeadBaneGitHub/spark,loneknightpy/spark,zero323/spark,pgandhi999/spark,publicRoman/spark,andrewor14/iolap,kevinyu98/spark,andrewor14/spark,setjet/spark,witgo/spark,sureshthalamati/spark,xuanyuanking/spark,SnappyDataInc/spark,ibm-research-ireland/sparkoscope,dbtsai/spark