Linux Ubuntu 安装Maven
我配置了 sudo gedit /etc/profile
配置了vi .bashrc
这个文档比较好(参考文档:http://www.linuxidc.com/Linux/2015-03/114619.htm)
Maven的下载地址
http://download.chinaunix.net/download.php?id=36582&ResourceID=13186
官网也可以下载,我这边用的网不好,只能用国内的
1.将下载的文件提取出来
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAABkCAIAAADIYg9yAAAAA3NCSVQICAjb4U/gAAASyklEQVR4Xu1dCXQUx5nu6nMOzegWIMCI+8YgwA4xtjExxDgBg4/ExmEXs5jd9XrfPr+3mN2XvbwhCU5Cdp+za5K1jYmN8YkBAzaHAwFjEBgTbiEQIAWERrc0d9/7V89Ic/WMGh2jBk+9flJ31V///9f/Vf1V1X+1hFRVJTLJHBYgzaFGRgtsgQwYJuoHGTAyYJjIAiZSJTMyMmCYyAImUiUzMkwEBp1mXaq3vVG54ZcKoVAMZ0Q0iiIysiFSFEmVZYq1jFnxb8XfedyICPPQoHRu+kRv64FnZjoomYy2cUpjkIjswEBRlZS0kUJZUX0qc//6Q0xWtsEqZiBLq5u6vm8LRQL8BBjLyCUBGUEAAqHLSJUQDVgWBNXs32YGExvXIa1gVG1/C0m8rKoy4JHyklQCLqAB5Dqu1FXiSpEQvLJ9g3FDmIEyfXOG+2q5r6HWSSNFSeX848pUKmKl1BXjrIlIFGhwuasuOEvGmMHQRnRI38i4+tl7JHZOMCz0L0lV4YorBWwiI8OYcwt5KkCOVKWqXe8bsYJJaNI0gcMKZ+ujE+xIpJAO/LGjIebJxkUWXX6eN2o1jQfg6kfMws1nERU1voyy6AM6HdP0hha1X+3Xlm0oruPrjYaY6QSPjPYLzwqKsUubb0AcjI/a4wd6o0W9wTNNc0bFljdJMSgzEXGxoyFF0yKrYPA/KegSizD4QqBiy/riu2cnlpowJ01gtJ09kmO30CRJIkRSCJwV3OF7nGI2HVEP+NZmYTuslm3nku1PYNjhBDsR7Rf81G7AOzJ1Z46Y0O66KqUJDJamnGxo+6Z5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eZRyH5Naenolm2BZAyulhDq3ewYv71sbfGiZ9e824PlRaJQr9/jf/qTTXQV82ddNyyD3r5ZlviTrphGhOrLY7MvXkNmF3WGV+dq1O9YL14UxYZn7F91EAiPaV59n94ANbjsWmQncRJBmwMiAYSILmEiVzMjIgGEiC5hIlczIyIBhIguYSJXMyMiAYSILmEiVzMjIgGEiC5hIlczIMBEY/w9xyUY7rQJc1QAAAABJRU5ErkJggg==" alt="" />
2.放在一个比较方便的地方
然后就配置文件
第三步添加环境变量
rencongwhu@rencongwhu:~/ApacheMaven$ sudo gedit /etc/profile export MAVEN_HOME=/home/rencongwhu/ApacheMaven/apache-maven-3.0.5 export PATH=${MAVEN_HOME}/bin:${PATH} 然后测试一下