Maven uses Tomcat plug-in to deploy remote Linux server
preface
This article mainly introduces Maven's deployment of remote Linux server by using Tomcat plug-in, and shares it for your reference and learning. I won't say much below. Let's take a look at the detailed introduction.
environment
Server: Ubuntu 16.04 (alicloud server)
JDK version: 1.8
Related Maven plug-ins:
The purpose of this plug-in is to skip testing when deploying
1. First of all, you need to create a file in conf / Tomcat users XML for remote users
for example
Username and password, corresponding to < username > XXXX < / username > < password > XXXX < / password > above.
2. Tomcat can only be accessed by the same physical machine by default. Therefore, if only the above is configured, it still cannot be deployed remotely, and a 401 error will be reported. You need to create a manager under conf / Catalina / localhost / xml。 Specify the access rules that allow remote physical machines. The following is a template, manager XML will allow any physical machine to access
Note that the allow attribute of the < value / > node is a regular expression used to match the IP of the remote connection.
This allows remote deployment through Maven
Next, log in http://xxxxx/manage A dialog box will pop up. Enter the remote login user and password
reference material:
https://stackoverflow.com/que...
https://stackoverflow.com/que...