[英]how to deploy to remote server with tomcat7-maven-plugin
我想使用tomcat7-maven-plugin将war文件从我的本地机器部署到远程服务器,这是我到目前为止的配置:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0-beta-1</version>
<configuration>
<server>pb</server>
<url>http://mydomain.com:8080/manager/html</url>
</configuration>
</plugin>
我需要更多配置吗? 我用什么命令来部署?
我必须将以下内容添加到settings.xml :
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>pb</id>
<username>myuser</username>
<password>mypass</password>
</server>
</servers>
</settings>
并使用命令mvn tomcat7:deploy
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.