---
title: "maven 打包自动部署到tomcat7"
author: "chzhxu"
date: "2016-06-16T18:08:57Z"
tags: []
categories: ["开源软件"]
slug: "maven-tomcat7"
draft: false
lastmod: "2016-06-16T20:05:05Z"
id: 2305554
url: "https://gangling.iteye.com/blog/2305554"
---

配置 pom.xml \[code="xml"] org.apache.tomcat.maven tomcat7-maven-plugin 2.2 http://10.9.16.150:8080/manager/text TomcatServer admin admin123 \[/code] 配置tomcat-user.xml \[code="xml"] \[/code] 配置mavne 的 setting.xml \[code="xml"] TomcatServer admin admin123 \[/code] \[code="java"] #第一次发布 tomcat7:deploy #再次发布 tomcat7:redeploy\[/code]