Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

How to configure Maven in your pc #7

Open
JGeraldoLima opened this issue Mar 20, 2014 · 0 comments
Open

How to configure Maven in your pc #7

JGeraldoLima opened this issue Mar 20, 2014 · 0 comments

Comments

@JGeraldoLima
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant