ITeye博客

tomcat7使用Maven自动部署

name327 · 2014-03-09 10:47 · 编程语言 · Markdown

<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>tomcat-maven-plugin</artifactId>
				<configuration>
					<url>http://localhost:8080/manager/text</url>
					<username>tomcat</username>
					<password>admin</password>
					<path>/</path>
				</configuration>
			</plugin>
		</plugins>
</build>

 以上内容插入到pom.xml project的节点之中

 

tomcat7 %tomcat_home%\conf\tomcat-users.xml配置

 

 

<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="admin" roles="manager-gui,manager-script"/>

 

如果是tomcat6 pom.xml中的那个tomcat url改为http://localhost:8080/manager

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。