Cause:
During the process of building a continuous integration service, you can perform online operations step by step, but you cannot hot deploy the project to Tomcat!
After debugging, I summarized the solution:
Key points for hot Hudson deployment:
(1)
The WAR/EAR files path must point to the war file compiled by Hudson,
Path: D: \ DevelopTools \ HUDSON_HOME \ jobs \ Customer Relationship Management System \ workspace \ target \ mini-web.war
(2)
The project here must be a maven project, and the hot deployment plug-in of maven-tomcat-plugin needs to be configured in pom. xml.
<FinalName> mini-web </finalName>
<Plugin>
<GroupId> org. codehaus. mojo </groupId>
<ArtifactId> tomcat-maven-plugin </artifactId>
<Version> 1.1 </version>
<Configuration>
<Url> http: // localhost: 8080/manager </url>
<Username> admin </username>
<Password> admin </password>
<Path>/mini-web </path>
</Configuration>
<Executions>
<Execution>
<Id> tomcat-deploy </id>
<Phase> deploy </phase>
<Goals> <goal> deploy </goal> </goals>
</Execution>
</Executions>
</Plugin>
(3)
Hot deployment is implemented through Tomcat manager Management, so the user must have the corresponding permissions, In the tomcat-users.xml permission configuration as follows
<Role rolename = "manager"/>
<Role rolename = "tomcat"/>
<Role rolename = "admin"/>
<User username = "admin" password = "admin" roles = "tomcat, manager, admin"/>
(4)
You need to add Goals and options: clean install tomcat: redeploy in the build integration configuration of the project.
That is to say, first clean, then install, and then deploy and release after the installation is successful.