参考:
http://my.oschina.net/chenbilly/blog/215023#OSC_h3_3
http://xiaoyaozjl.iteye.com/blog/2007900
Android编译使用4.4+的android.jar,需要安装 maven-android-sdk-deployer来为其提供支持
cd /home
wget https://github.com/mosabua/maven-android-sdk-deployer/archive/master.zip
unzip master.zip
cd maven-android-sdk-deployer-master
mvn install -P 4.4
cd extras/compatibility-v4
mvn install
注意:在这之前需要安装与之对应的sdk并配置环境变量
错误处理:
Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce-maven) on project maven-android-sdk-deployer: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
http://stackoverflow.com/questions/23080174/build-failure-of-maven-android-sdk-deployer
Maven Should be upgraded to >= 3.1.1