Describes installing MAVEN, configuring MAVEN environment variables, and configuring the Maven plugin in eclipse
Tools/Materials
Method/Step
Download Maven's bin, which can be downloaded on the official Apache website.
After downloading, unzip, find a path to put in, the bin location in the environment variable, new environment variable Maven_home
Path to add Maven's bin to path
Because MAVEN relies on the Java Runtime environment, you need to configure the Java Runtime Environment before using MAVEN. Download and install the JDK, configure the JDK environment variable java_home, or MAVEN will not be able to use
After the configuration is complete, at the Windows command prompt, enter MVN-V test, the configuration is displayed successfully
After a successful configuration, start configuring Maven in Eclipse, click the Eclipse menu bar help->eclipse Marketplace search keyword maven to the plugin Maven integration for Eclipse and click Install, Such as:
When the installation is complete, click Restart Eclipse
After rebooting, in order for the MAVEN plugin installed in eclipse to be the same as the one installed in Windows, you need to reposition Maven in Eclipse, click Maven, Preference, window, installation, add to set
- 9
Setup completed successfully.
MAVEN installation and Eclipse configuration maven