Wednesday, March 13, 2013

Eclipse & maven setup for android development

I am using ubuntu. So developers of windows or mac should Google respective  softwares for their platforms.


1) Download latest an Eclipse.(I prefer Helios)
2) Download Android sdk.
3) Install ADT plugin in your eclipse follow this link.

4) Install maven using terminal
  • wget http://mirror.olnevhost.net/pub/apache/maven/binaries/apache-maven-3.0.4-bin.tar.gz
  • Run command above from the dir you want to extract maven to (e.g. /usr/local/apache-maven)
  • tar xvf apache-maven-3.0.4-bin.tar.gz
  • Export maven path:
    export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.4
    export M2=$M2_HOME/bin
    export PATH=$M2:$PATH
  • Verify
    mvn -version
   
 5) Install M2e plugin (maven integration for eclipse)



 5.1) Go Window -> preferences > choose Maven from left menu -> Installations
       -> Add the path of installed folder form maven (you did in step 4)

5.2) Now in same menu select User settings and then browse path of maven you installed in step 4 and select cofig/settings.xml (i.e /usr/share/maven/conf/settings.xml)

6) Install Android configrator for m2e (From eclipse market place)
(Open help -> eclipse marketplace.. -> search for this plugin)




7) Select window -> Preferences -> Archetypes --> Add local catelog
   and add this  file  from your machine



Thats all you configuration for maven and eclipse of complete

1 comment: