Eclipse Integration Maven Plugin

Source: Internet
Author: User

One, MAVEN installation configuration:

  1. Download Maven website address: http://maven.apache.org/download.cgi

  

  After the download is complete, unzip. Mine is placed under the F plate, the path is: F:\apache-maven-3.5.0

2. before installing MAVEN, first make sure that the JDK is installed and configured.

3. Configure MAVEN Environment variables

1). The new environment variable name is maven_home and the value is your MAVEN decompression path.

      

  2). Configure the Maven_home variable to the PATH variable:%maven_home%\bin;

3). How do I determine if MAVEN is installed after configuring environment variables? Open cmd, enter mvn-version or mvn-v to view Maven version information,

This shows that the installation is successful.

   4. Modify the MAVEN local warehouse location

The local repository for MAVEN is placed under the temporary folder of the local user by default under the Repository folder under M2. Now let's change it.

    Where to change? maven Unzip the path to the settings.xml file within the Conf file.

    Add <localRepository>F:\Repositories</localRepository> in the location where "F:\Repositories" is the path where I need to store the MAVEN repository locally.

    To this MAVEN local warehouse location is configured. Next, we integrate the Maven plugin in eclipse.

There are two of the most common ways that Eclipse installs plug-ins:
1. One is to install online, that is, help--and install New software, and then enter the HTTP address http://m2eclipse.sonatype.org/sites/m2e to install, the disadvantage is slow!
2. One is the offline installation, the way to install the link, this way of flexibility is relatively strong.

The first way is no longer too much to describe, we mainly say the second way:

    

   Link installs Eclipse maven plugin offline

1. Create two folders in the root directory of your eclipse installation: Links,myplugins (the folder name is customizable),            Put the eclipse-maven3-plugin.7z extracted features and plugins folders under the Myplugins folder.            2. In the links directory, create a maven.link (file name customizable) file, open and enter: Path=myplugins folder absolute Path (Note that the folder path is "/" or "\ \" instead of "\"). 3. Restart Eclipse, after launch you open window---> Preferences will find one more option Maven, indicating that the installation was successful. the direct rude way:Import the unpacked subfolder features and plugins jar package files into the features and plugins folders in the Eclipse installation directory, respectively, and then restart Eclipse to see the MAVEN options in preferences. That is, the MAVEN plugin is configured successfully. 5.eclipse Configuring Maven 1)., add locally extracted maven:

    2). Configure the global and user maven settings files,

    

    

    At this point, Eclipse integrates Maven end.

    

Eclipse Integration Maven Plugin

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.