geoar-app
geoar-app copied to clipboard
How to configure Maven in your pc
PS.: lines with an single "*" are commands.
****CREATING FOLDER "apache-maven"
from root: * cd usr/local * sudo mkdir apache-maven
****COPYING FILE "apache-maven-3.1.1-bin.tar.gz" FOR FOLDER UP * sudo cp ~/Downloads/apache-maven-3.1.1-bin.tar.gz /usr/local/apache-maven/
****EXTRACTING THE FILE IN THE CREATED FOLDER
IN THE PATH "/usr/local/apache-maven": * sudo tar-vzxf apache-maven-3.1.1-bin.tar.gz
***SETTING ENVIRONMENT VARIABLES * sudo gedit /etc/profile * follow this steps(verify the maven version mentioned in the text, the version used in this tutorial is 3.1.1): http://maven.apache.org/download.cgi ** set variables mentioned here: https://code.google.com/p/maven-android-plugin/wiki/GettingStarted ***** to help you with the last step, copy the following code snippet to this file(/etc/profile), modifying only the path of the SDK. I hope it can help you, developer!
/* M2_HOME=/usr/local/apache-maven/apache-maven-3.2.1 M2=$M2_HOME/bin PATH=$M2:$PATH JAVA_HOME=/usr/local/java/jdk1.7.0_51 JRE_HOME=/usr/local/java/jdk1.7.0_51/jre ANDROID_HOME=/home/geraldo/Dropbox/PROJETO\ SONY/2013/adt-bundle-linux-x86_64-20130917/sdk PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$JRE_HOME/bin:$ANDROID_HOME/bin
export M2_HOME export M2 export JAVA_HOME export JRE_HOME export ANDROID_HOME export PATH*/
--> run "mvn --version" to see if it was properly installed WARNING: be very careful with this variables, wrong setting maybe cause an error on system, but you can easily fix it, just deleting this values, updating the file and searching what's wrong!
Have a great coding!