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