[SPARK-31120][BUILD] Support enabling maven profiles for importing vi…
[SPARK-31120][BUILD] Support enabling maven profiles for importing vi…

…a sbt on Intellij IDEA.

### What changes were proposed in this pull request?
Read from java property "sbt.maven.profiles", the maven profiles to be enabled while importing to intellij IDEA via SBT.

### Why are the changes needed?
Without this change one needs to set an os-wide environment variable `SBT_MAVEN_PROFILES`, on mac it is even trickier (I have not figured out, what can be done).

### Does this PR introduce any user-facing change?
None

### How was this patch tested?
Manually tested by applying multiple profiles or a single profile.
Please see the attached images to see the steps.
<img width="802" alt="Screenshot 2020-03-11 at 4 09 57 PM" src="https://user-images.githubusercontent.com/992952/76411667-46223280-63b8-11ea-9a77-dc014b66d48b.png">
<img width="867" alt="Screenshot 2020-03-11 at 4 18 09 PM" src="https://user-images.githubusercontent.com/992952/76411676-4ae6e680-63b8-11ea-895d-ed9d6cc223c5.png">

Closes #27878 from ScrapCodes/SPARK-31120/idea-load-maven-profiles.

Authored-by: Prashant Sharma <a724b57b130beae6c3ba0cf4d3f3d71d2368a0a6@in.ibm.com>
Signed-off-by: Sean Owen <d519fa33a62684a61ab04b24d26f83452d51b34c@gmail.com>

JoshRosen/spark,chuckchen/spark,xuanyuanking/spark,zzcclp/spark,mahak/spark,ueshin/apache-spark,BryanCutler/spark,holdenk/spark,vinodkc/spark,JoshRosen/spark,shaneknapp/spark,wangmiao1981/spark,holdenk/spark,taroplus/spark,kevinyu98/spark,nchammas/spark,dongjoon-hyun/spark,shaneknapp/spark,zzcclp/spark,ptkool/spark,apache/spark,chuckchen/spark,mahak/spark,chuckchen/spark,ueshin/apache-spark,wangyum/spark,HyukjinKwon/spark,WeichenXu123/spark,shaneknapp/spark,JoshRosen/spark,cloud-fan/spark,jiangxb1987/spark,gengliangwang/spark,holdenk/spark,JoshRosen/spark,shuangshuangwang/spark,maropu/spark,srowen/spark,nchammas/spark,wangmiao1981/spark,maropu/spark,wangmiao1981/spark,shuangshuangwang/spark,holdenk/spark,jiangxb1987/spark,HyukjinKwon/spark,wangmiao1981/spark,wangmiao1981/spark,ConeyLiu/spark,xuanyuanking/spark,zuotingbing/spark,zero323/spark,gengliangwang/spark,mahak/spark,dbtsai/spark,HyukjinKwon/spark,jiangxb1987/spark,taroplus/spark,shuangshuangwang/spark,jiangxb1987/spark,dbtsai/spark,mahak/spark,skonto/spark,hvanhovell/spark,chuckchen/spark,ueshin/apache-spark,skonto/spark,dongjoon-hyun/spark,HyukjinKwon/spark,wangmiao1981/spark,srowen/spark,jiangxb1987/spark,WeichenXu123/spark,nchammas/spark,witgo/spark,kevinyu98/spark,JoshRosen/spark,gengliangwang/spark,vinodkc/spark,ptkool/spark,skonto/spark,vinodkc/spark,ConeyLiu/spark,BryanCutler/spark,spark-test/spark,JoshRosen/spark,BryanCutler/spark,rednaxelafx/apache-spark,kevinyu98/spark,zuotingbing/spark,gengliangwang/spark,shaneknapp/spark,taroplus/spark,maropu/spark,taroplus/spark,ConeyLiu/spark,wzhfy/spark,spark-test/spark,chuckchen/spark,xuanyuanking/spark,dongjoon-hyun/spark,ptkool/spark,ptkool/spark,skonto/spark,shuangshuangwang/spark,gengliangwang/spark,xuanyuanking/spark,cloud-fan/spark,wangyum/spark,zzcclp/spark,kevinyu98/spark,HyukjinKwon/spark,chuckchen/spark,zuotingbing/spark,ConeyLiu/spark,JoshRosen/spark,wangyum/spark,mahak/spark,WeichenXu123/spark,dongjoon-hyun/spark,spark-test/spark,witgo/spark,dbtsai/spark,rednaxelafx/apache-spark,zuotingbing/spark,HyukjinKwon/spark,maropu/spark,skonto/spark,rednaxelafx/apache-spark,ueshin/apache-spark,srowen/spark,srowen/spark,wzhfy/spark,hvanhovell/spark,xuanyuanking/spark,zero323/spark,wangyum/spark,xuanyuanking/spark,wzhfy/spark,dongjoon-hyun/spark,ConeyLiu/spark,WeichenXu123/spark,dbtsai/spark,ConeyLiu/spark,holdenk/spark,wzhfy/spark,apache/spark,milliman/spark,shaneknapp/spark,taroplus/spark,wzhfy/spark,shuangshuangwang/spark,dbtsai/spark,WeichenXu123/spark,kevinyu98/spark,wzhfy/spark,dongjoon-hyun/spark,hvanhovell/spark,shuangshuangwang/spark,shuangshuangwang/spark,zzcclp/spark,nchammas/spark,hvanhovell/spark,maropu/spark,zero323/spark,shaneknapp/spark,cloud-fan/spark,ptkool/spark,xuanyuanking/spark,vinodkc/spark,WeichenXu123/spark,BryanCutler/spark,vinodkc/spark,WeichenXu123/spark,nchammas/spark,rednaxelafx/apache-spark,milliman/spark,zero323/spark,wangyum/spark,HyukjinKwon/spark,wangyum/spark,witgo/spark,matthewfranglen/spark,cloud-fan/spark,zero323/spark,gengliangwang/spark,nchammas/spark,kevinyu98/spark,zuotingbing/spark,zero323/spark,cloud-fan/spark,nchammas/spark,kevinyu98/spark,spark-test/spark,jiangxb1987/spark,hvanhovell/spark,apache/spark,milliman/spark,witgo/spark,ueshin/apache-spark,jiangxb1987/spark,skonto/spark,apache/spark,gengliangwang/spark,cloud-fan/spark,witgo/spark,taroplus/spark,ueshin/apache-spark,zuotingbing/spark,dongjoon-hyun/spark,apache/spark,zzcclp/spark,wangmiao1981/spark,spark-test/spark,holdenk/spark,spark-test/spark,ueshin/apache-spark,milliman/spark,maropu/spark,srowen/spark,vinodkc/spark,milliman/spark,skonto/spark,ptkool/spark,shaneknapp/spark,BryanCutler/spark,taroplus/spark,ptkool/spark,vinodkc/spark,BryanCutler/spark,zzcclp/spark,zzcclp/spark,apache/spark,rednaxelafx/apache-spark,srowen/spark,mahak/spark,apache/spark,milliman/spark,wzhfy/spark,srowen/spark,rednaxelafx/apache-spark,hvanhovell/spark,holdenk/spark,chuckchen/spark,ConeyLiu/spark,hvanhovell/spark,dbtsai/spark,maropu/spark,rednaxelafx/apache-spark,dbtsai/spark,BryanCutler/spark,spark-test/spark,witgo/spark,witgo/spark,zuotingbing/spark,wangyum/spark,zero323/spark,cloud-fan/spark,milliman/spark,mahak/spark