First, Maven download http://maven.apache.org/start/download.html II, Maven installation 1, double-click the download file (may be different depending on the download format, I download Maven-1.0.2.exe) installation. 2, set maven_home = d: / maven 1.0.2 (ie Maven installation directory) 3, set PATH = D: / MAVEN 1.0.2 / bin (ie Maven installation directory) 4, create local dependency library install_repo.bat% maven_homee% /.MAVEN/Repository
Third, notes: 1. Maven default transote repository is ibiblio.org, some people don't go, so I have to change it. The default order of Maven finds configuration parameters is starting from defaults.properties in maven.jar. Open this file, modify: maven.repo.remote = http://apache.linuxForum.Net/dist/java-repository, http://mirrors.sunsite.dk/maven/ , Http://public.planetmirror.com/pub/maven, http://www.ibiblio.org/maven
2, Maven default local files are saved in the user.home of Document and Setting, it is very inconvenient. Create a local directory under% MAVEN_HOME%, saving local repostiory to avoid loss of the system. Maven.home.local = $ {maven.home} / local 3 Chinese characters. Delete it! It will not be garbled. (Or conversion with Native2ASCII)