Java Continuous Integration (4) – Building Maven Web projects

Source: Internet
Author: User
Tags apache tomcat

General steps to build a MAVEN Web project using Jenkins

1 jekins from SVN pull replacement code

2 Deploying the project to the Tomcat container using Apache Tomcat Maven Plugin

Specific configuration Procedures 1 New Task

Enter an item name, select "Build a free-style software project", click OK

2 Configuring source Management

Select Subversion in source management and fill in the SVN address to build MAVEN Web project

3 Configuration Build

In the build, click Add Build Step and select ' Invoke top-level Maven targets '

[WARNING]

The value of goals is package Tomcat7:redeploy and not mvn package Tomcat7:redeploy, no mvn

4 other
    • You can also increase the post-build step by sending an email to the relevant person

Reference Documents

Tomcat Maven Plugin

Http://tomcat.apache.org/maven-plugin-2.1/

Configure & Use

Http://tomcat.apache.org/maven-plugin-2.1/tomcat7-maven-plugin/usage.html

Http://tomcat.apache.org/maven-plugin-2.1/tomcat7-maven-plugin/plugin-info.html

Java Continuous Integration (4) – Building Maven Web projects

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.