Eclipse maven plug-in installation and configuration details, eclipsemaven
Maven3 installation:
Before installing Maven, make sure that your JDK has been installed and configured. Maven is a project under Apache. The latest version is 3.0.4.
First go to the official website to download Maven: http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz
After the download is complete, decompress it. I will rename the decompressed folder to maven and put it under the D: \ Server Directory, that is, the final path of maven is: D: \ Server \ maven
Configure maven environment variables:
System variable: MAVEN_HOME = D: \ Server \ maven
User variable: path = % MAVEN_HOME % \ bin
I believe that everyone has been equipped with environment variables. The detailed steps are not mentioned, and the attribute name and attribute value are matched with OK.
Open cmd and press mvn-version.
If the above information is printed, Maven3 has been installed on your computer.
Mvn is an mavn command. mvn-version is used to view the version information. my operating system is a 32-bit WIN7, and the installed maven is 3.0.4.
If the above information is printed, Maven3 has been installed on your computer.
Modify the maven repository storage location:
Find the settings. xml configuration file under conf in maven. My files are in D: \ Server \ maven \ conf \ settings. xml.
By default, the maven repository is stored in the repository under the. m2 folder under the temporary folder of the local user. My repository is under the C: \ Users \ admcnm \. m2 \ repository directory,
Now let's change it to our own path. Now I want to specify the repository to the D: \ Repositories \ Maven directory, just open the local repository that was logged out above,
Then write the corresponding path value to it:
OK. First, let's get to know maven. In cmd, press enter and execute: mvn help: system.
At this time, maven will start to download a lot of things from the remote repository. It's okay to let it download. It will be downloaded sooner or later. Next we will install the maven plug-in eclipse,
One of the most obvious differences between using eclipse and using myeclipse is that in eclipse, you need to install many plug-ins, such as highly integrated tools such as myeclipse,
It is better not to use too much. I just want to talk about it. For eclipse or myeclipse, you should choose your own or environment. The above will be my point. Okay, let's talk about things,
There are two most common ways to install plug-ins in eclipse:
1. one is online installation, which seems to be the most commonly used, namely: Help --> Install New Software, and then enter the HTTP address for installation. However, there is an obvious drawback, slow!
2. One is to install the plug-in offline and install it using link. This method is more portable and can be plugged in and unplugged at any time, which is very convenient.
Install eclipse maven3:
1. If you use the first method to install eclipse, you only need to enter the http address: http://m2eclipse.sonatype.org/sites/m2eto check the installation, and then restart eclipse after the installation is completed.
2. here I will not talk about the above online installation for two reasons: first, it is not easy to manage after installation; second, it is too slow to download; next I will talk about using the link Method to install the maven3 plug-in offline.
The official website does not provide offline installation packages for maven plug-ins. Generally, you can search for them online. If you are lucky, you can find them. I have sorted out the maven offline installation package for anyone who needs it to download,
You can be on this site, you can also click the link here to download: http://www.bkjia.com/softs/555777.html
Link install eclipse maven plug-in offline
1. create two folders: links and myplugins under the root directory of your eclipse installation. These two folders are located at: D: /IDE/HELIOS/eclipse/(for reference, used below)
2. decompress the eclipse-maven3-plugin.7z on my 115 online drive to the myplugins directory.
3. create maven.txt in the links directory (the name can be obtained at will), open it, and enter: path = D: /IDE/HELIOS/eclipse/myplugins/maven (refer to your maven plug-in above)
4. Save and close maven.txt, change the suffix to maven. link, and restart eclipse. (If your eclipse is not open, open it directly)
Check whether the maven plug-in of eclipse is successfully installed: Window --> Preferences
Configure maven:
1. Click the Add button and select the PATH value for installing maven on your local machine.
2. Click the Browse button, select your maven setting. xml configuration file, and click OK to complete the eclipse maven plug-in configuration.
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.