The road of continuous integration--maven

Source: Internet
Author: User
Tags svn version control system

It 's written in front .

Since taking part in the April Qcon, the idea of continuous integration has been emerging in my mind. After a lapse of four months, finally have the opportunity to practice. Here, first of all, we should thank the leaders for their strong support. Remember that one of the first obstacles to attending scrum training comes from the top. Because the top level wants to see tangible results, if the existing development model and quality management system has a better effect, they are not willing to try new models. And this time with the understanding and support of the leaders, I can open my hands and try these new tools. Secondly, I should thank my talented colleagues. Because, every time even small changes will bring some inconvenience to their development, but they will accept without complaining, and always give me some unexpected ideas, to help me constantly improve the system.

Although the current CI system still has many problems, but it should be time to make a summary, write down the process of the occurrence of the dots. Or that sentence, can help see these articles of the students to solve some practical problems.

CI running operating system is:64-bit cent OS

The version control system is an integral part of CI, which has been documented in the previous two articles for Subversion's installation and configuration processes under CentOS:

Configure Apache2 + SVN on Cent os

Cent OS configuration Apache2 + SVN (cont.) To achieve precise control of directory access

This time, start with Maven.

The first time I fought with Maven, I drubbing. This time to prepare for a protracted battle.

First, installation (integrated with Eclipse)

To use Maven under Eclipse, you need to install the M2eclipse plug-in:

1, Eclipse's Help menu-->install New Software

2, add the address of the plug-in (HTTP://M2ECLIPSE.SONATYPE.ORG/SITES/M2E) to the available software site

3. Check the "Maven Integration for Maven" appearing in the middle box, and next

4. Eclipse starts looking for components that can be installed and dependent packages

5, will install the plug-in, would be listed

6, after a few minutes waiting, will be prompted to install a successful, need to restart eclipse

Note:

1, for the first installation of Plug-ins, in 5, 6 steps will appear between the installation protocol program, directly choose to accept (Accept), next (next) can be.

2, through the above URL installation m2eclipse version is the latest 0.10.0, because this version can not directly from 0.9.8 or 0.9.9 upgrade, So if you have already installed m2eclipse0.9.8 or m2eclipse0.9.9 you need to uninstall first, then install 0.10.0. The uninstall method is as follows:

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

(2) Select the original installation M2eclipse plug-in uninstall can

(3) After the uninstall is complete, you will need to restart eclipse. Then follow the steps above to install the latest m2eclipse.

question: After the installation is complete and the eclipse is restarted, you will sometimes see a hint that the eclipse is running in a JRE, but a JDK is required
Some Maven plugins may isn't work when importing projects or updating source folders.

Workaround: Locate the Eclipse installation directory, edit the Eclipse.ini file, save it, and restart eclipse:

ii. use of Maven

1. Create a new project

(1) Open the New Project wizard window

(2) Direct next

(3) The intermediate steps are directly to the next step (next) until:

Just create the project, and then you can use MAVEN to manage the library used in your 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.