maven 实现tomcat的远程部署
Maven 实现tomcat的远程部署URL:http://cuiquanmao.javaeye.com/blog/544175需要更改的有三处: 1.tomcat的配置:在conf\tomcat-users.xml中加上有管理权限的用户:
2.在pox.xml中添加
plugin>
org.codehaus.mojo
tomcat-maven-plugin
http://localhost:8080/manager
tomcat.server
/mycontext
3.在.m2/settings.xml文件中增加:
tomcat.server
marshal
password
注意:红色的要一致,username和password要一致,要配置上服务器的url
页:
[1]