我想使用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>我需要更多的配置吗?我应该使用什么命令来部署呢?
发布于 2012-06-30 23:08:20
我必须将以下内容添加到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
https://stackoverflow.com/questions/11274968
复制相似问题