If you can print the information above, it means that Maven is already installed on your PC.
MVN is a mavn instruction, mvn-version is to view the version information, my operating system is 64-bit WIN7, the installation of MAVEN is 3.3.9
If you can print the information above, it means that Maven is already installed on your PC.
To modify the location of the MAVEN repository:
Find the Settings.xml configuration file under Maven under Conf, mine is in D:\Server\maven\conf\settings.xml
The MAVEN repository defaults to the. M2 folder under the local user's Temp folder under Repository, mine is under the C:\Users\admcnm\.m2\repository directory,
Now let's modify to assign it to our own path, I'm now going to assign the repository to the D:\Repositories\Maven directory, just open the local repository that was logged off.
Then write the corresponding path value in it:
This time to download the jar package from the remote repository to the local repository:
Knock in CMD and enter to execute: MVN help:system
This is when Maven downloads a whole bunch of stuff from the remote repository, it's okay, it's downloaded, it's going to be downloaded sooner or later, and then the MAVEN plugin is installed in eclipse.
1. Open Eclipse, Menu "Help"-"Install New software ..."
2. In the work with Address field, enter: http://download.eclipse.org/releases/Juno (note: The Red Word section is the version name of Eclipse, mine is/HTTP/ download.eclipse.org/releases/neon/201612211000), wait a moment:
3. Enter Maven in the Filter box to locate the plug-in you want to install.
4. Select "Collaboration"-"M2e-maven Integration for Eclipse" and click the Next button to install the steps. Figure:
5. Install to restart Eclipse, menu: Window-to-preferences, enter MAVEN for related settings.
For configuring environment variables you can watch a blog if you are not familiar with it.
Installing Maven's plugins in eclipse