Ext: 51779159
The configuration and use steps for MAVEN installation and Myeclipse+maven are as follows: Maven installation
- Download maven
Download the Apache-maven-3.3.9-bin.zip in https://maven.apache.org/download.cgi and unzip it directly to the local.
- Configuring Environment variables
Please make sure you have installed the jdk1.7 above and configured the Java_home.
Configure the environment variable maven_home, such as F:\maven\apache-maven-3.3.9, after my decompression file is placed under F:\maven, so the path is as above.
Configure path, plus%maven_home%\bin at the end.
- Open cmd, enter mvn-version to get the following:
At this point, MAVEN installation is successful!
Using Maven in myeclipse2014
Because myeclipse2014 's maven4myeclipse is not very good, not to avoid two different versions of the MAVEN build project rules are not the same, so the myeclipse2014 in the MAVEN also changed to our above installed maven3.3.9
Configure Maven
Open Window–>preferences–>myeclipse–>maven4myeclipse such as:
Click on the Add button in the top right corner to select the Maven root directory (my directory is F:\maven\apache-maven-3.3.9)
Set up a central repository for MAVEN
Maven4myeclipse has a default warehouse address, in the user file. M2 directory, here we define the directory ourselves.
First, create a new central repository (the jar package to be loaded by the project), my directory is F:\maven\m2\repository, and then copy the settings.xml configuration file from F:\maven\apache-maven-3.3.9\conf to F : \maven, then open the copied settings.xml file, where the value in the localrepository tag is changed to F:\maven\m2\repository, and if the localrepository tag is commented out, open the comment , this step is to designate a central warehouse.
Next, go to the following interface
, reconfigure the settings.xml.
Last step, enter
Replace the default JDK with the JDK configured in the environment variable and, if set, default VM arguments
At this point, the configuration of Maven in myeclipse2014 has been fully completed.
(GO) Maven installation and Myeclipse+maven configuration and use