Some time ago to study maven, halfway because of the work of a period of time, again to see the installation process is basically forgotten. Have to look for information and then come again, will maven,artifactory and m2eclipse installation of the entire process of recording the record out, the memo. In addition, I think this information should be more suitable for MAVEN beginners, do it once you can complete the installation of three things, and then you can learn and use.
A. Install Maven
Install the official standard installation method (Http://maven.apache.org/download.html#Installation) to install the following steps
1. Download uncompressed apache-maven-2.0.9-bin.zip to installation directory
2. Add environment variable M2_home, point to Maven's installation directory, and note that you cannot end with "\"
3. Add (optional) MAVEN environment variable maven_opts, value is "-xms256m-xmx512m", the following can add additional
4. Modify path to add%m2_home%/bin to path
5. Ensure that the JAVA_HOME environment variable exists and is set correctly to ensure that the%java_home%/bin directory is in the path
After installation, perform "MVN--version" at the command line to detect if Maven is properly installed.
Add:
1. If you are using a proxy to access the Internet, you need to add the appropriate agent information to the MAVEN profile
Otherwise there will be an error:
The pulgin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or valid version could be found
......
Workaround:
Open the file Maven/conf/settings.xml, find <proxies>, open the original commented <proxy>, and modify the corresponding information.
Attention:
1.)
2. If the user name, password do not need, you can delete <username><password>, set to null also line.