android maven lion

 

1、配置环境变量:

~/.bash_profile

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/contents/Home

~/.bash_login

export ANDROID_HOME=/Developer/android-sdk-macosx
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH

/etc/launchd.conf

setenv JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/contents/Home
setenv ANDROID_HOME /Developer/android-sdk-macosx

hostname:~ user$ launchctl setenv JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/contents/Home
hostname:~ user$ launchctl setenv ANDROID_HOME /Developer/android-sdk-macosx

 

 

 

参考:

maven-android-plugin

No Android SDK path could be found. Using maven android plugin under Mac OS

为android项目集成maven

Set an Environment Variable in Mac OS X - /etc/launchd.conf 

BOOTSTRAP PROJECTS USING THE MAVEN-ANDROID-ARCHETYPES

maven集成eclipse android项目办法总结 *****

 

posted @ 2013-01-09 14:25  chenjunbiao  阅读(281)  评论(0编辑  收藏  举报