The path to continuous integration-Maven

Source: Internet
Author: User

Preface

Since joining qcon in February April, the idea of continuous integration has been on the mind. After four months, we finally have the opportunity to practice. We should first thank the leaders for their support. I remember that when I attended the scrum training, one of the first obstacles mentioned was from the upper layer. The upper layer hopes to see tangible results. If the existing development mode and quality management system have good results, they are reluctant to try new models. This time, with the understanding and support of the leaders, I can try these new methods with no scrubs. Second, I should thank my talented colleagues. Because every small change will cause some inconvenience to their development, but they will accept it with no complaints and will always give some unexpected ideas to help me continuously improve the system.

Although there are still many problems in the current CI system, it is time to make a summary and write down what happened in this process. In other words, we can help the students who read these articles solve some practical problems.

The CI operating system is:64-bit cent OS

The version control system is an indispensable part of CI. The previous two articles have recorded the installation and configuration process of subversion in centos:

Configure apache2 + SVN on cent OS

Configure apache2 + SVN (continued) on cent OS to precisely control Directory Access

 

This time starts with Maven.

My first battle with Maven resulted in my returning. This time, we are ready to fight for a long time.

 

1. Installation (integrated with eclipse)

To use Maven in eclipse, install the m2eclipse plug-in:

1. Eclipse help menu --> install new software

2. Add the plug-in address (http://m2eclipse.sonatype.org/sites/m2e) to the available software site

3. Select "Maven integration for Maven" in the middle box and click "Next ".

4. eclipse began to find the components that can be installed and the dependent packages.

5. The plug-ins to be installed will be listed

6. After several minutes, you will be prompted that the installation is successful and you need to restart eclipse.

Note:

1. For the plug-in installed for the first time, the installation protocol program will appear between steps 5 and 6. Select accept and next.

2. Install the latest m2eclipse version through the URL above.0.10.0, Because this version cannot be directly0.9.8Or0.9.9Therefore, if m2eclipse0.9.8 or m2eclipse0.9.9 has been installed, uninstall it before installing 0.10.0. The uninstall method is as follows:

(1) "about Eclipse" (about eclipse) in the Help menu of eclipse)

(2) Select the original install m2eclipse plug-in to uninstall.

 

(3) After uninstalling, restart eclipse. Then follow the steps above to install the latest m2eclipse.

 

Problem:After the installation ends normally and eclipse is restarted, the following prompt is displayed: Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.

Solution:Find the eclipse installation directory, edit the eclipse. ini file, save the file, and restart Eclipse:

2. Use Maven

1. Create a project

(1) Open the new project wizard window

(2) Direct next step

(3) The intermediate steps are directly next:

The project is created here, And Maven can be used to manage the libraries used in the project.

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.