软件环境:
1:下载android sdk 并且设置path 默认包含两个exe
1.1:AVD=>android virtue machine android虚拟机
2.1:SDK=>android sdk 管理 例如 android2.0 android3.0 android4.0 ....
2:下载eclipse android插件
2.1 Android ADT extendsion 3.5.0
2.2 Android Development Tools For Eclipse
2.3 Android Configurator for M2E
搭建android maven工程
1:DartifactId hello-android
2:DgroupId com.test
3:Dpackage com.test.hello
mvn archetype:generate -DarchetypeArtifactId=android-release -DarchetypeGroupId=de.akquinet.android.archetypes -DarchetypeVersion=1.0.1 -DgroupId=com.test -DartifactId=hello-android -Dpackage=com.test.hello
默认创建两个工程一个android一个android的测试工程
创建一个dto工程
mvn archetype:create -DgroupId=com.test -DartifactId=hello-android-dto -Dpackage=com.test.dto
创建一个service工程
mvn archetype:create -DgroupId=com.test -DartifactId=hello-android-service -Dpackage=com.test.service
eclipse导入maven工程
这样就包含以上四个工程
参考网站:http://stand.spree.de/wiki_details_maven_archetypes
开源组件:http://www.csdn.net/article/2013-05-03/2815127-Android-open-source-projects
http://www.ikoding.com/build-android-project-with-maven/
1:下载android sdk 并且设置path 默认包含两个exe
1.1:AVD=>android virtue machine android虚拟机
2.1:SDK=>android sdk 管理 例如 android2.0 android3.0 android4.0 ....
2:下载eclipse android插件
2.1 Android ADT extendsion 3.5.0
2.2 Android Development Tools For Eclipse
2.3 Android Configurator for M2E
搭建android maven工程
1:DartifactId hello-android
2:DgroupId com.test
3:Dpackage com.test.hello
mvn archetype:generate -DarchetypeArtifactId=android-release -DarchetypeGroupId=de.akquinet.android.archetypes -DarchetypeVersion=1.0.1 -DgroupId=com.test -DartifactId=hello-android -Dpackage=com.test.hello
默认创建两个工程一个android一个android的测试工程
创建一个dto工程
mvn archetype:create -DgroupId=com.test -DartifactId=hello-android-dto -Dpackage=com.test.dto
创建一个service工程
mvn archetype:create -DgroupId=com.test -DartifactId=hello-android-service -Dpackage=com.test.service
eclipse导入maven工程
这样就包含以上四个工程
参考网站:http://stand.spree.de/wiki_details_maven_archetypes
开源组件:http://www.csdn.net/article/2013-05-03/2815127-Android-open-source-projects
http://www.ikoding.com/build-android-project-with-maven/