deploy spring war to tomcat.
来源:互联网 发布:mysql实时同步数据库 编辑:程序博客网 时间:2024/04/26 11:18
omcat7 deployment can be automated from Maven using tomcat7-maven-plugin, http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/plugin-info.html. To enable Tomcat deployment, do the following,
- Configure Tomcat7
- Add plugin to pom.xml
- Invoke tomcat7:deploy
- Troubleshooting
Configure Tomcat7
Edit conf/tomcat-users.xml, and append the following,
<
role
rolename
=
"manager"
/>
<
role
rolename
=
"manager-gui"
/>
<
role
rolename
=
"admin"
/>
<
user
username
=
"admin"
password
=
"admin"
roles
=
"admin,manager,manager-gui"
/>
Add plugin to pom.xml
<
pluginRepositories
>
....
<
pluginRepository
>
<
id
>apache.snapshots</
id
>
<
name
>Apache Snapshots</
name
>
<
url
>http://people.apache.org/repo/m2-snapshot-repository</
url
>
<
releases
>
<
enabled
>false</
enabled
>
</
releases
>
<
snapshots
>
<
enabled
>true</
enabled
>
</
snapshots
>
</
pluginRepository
>
....
</
pluginRepositories
>
<
build
>
<
plugins
>
....
<
plugin
>
<
groupId
>org.apache.tomcat.maven</
groupId
>
<
artifactId
>tomcat7-maven-plugin</
artifactId
>
<
version
>2.0-SNAPSHOT</
version
>
<
configuration
>
<
username
>admin</
username
>
<
password
>admin</
password
>
<
update
>true</
update
>
</
configuration
>
</
plugin
>
....
</
plugins
>
</
build
>
Invoke tomcat7:deploy
Add a Run As profile for your Maven build with the following,
clean
package
tomcat7:deploy
Troubleshooting
403 forbidden error: make sure you use tomcat7 not tomcat (some default value such as <url> has changed in Tomcat 7)- deploy spring war to tomcat.
- Jenkins中deploy插件的deploy war/ear to a container与deploy artifacts to maven reepository区别
- Jenkins构建项目时构建成功但不部署到tomcat的webapps下(Build step 'Deploy war/ear to a container' marked build as fai)
- deploy the war project
- How to deploy maven project to tomcat inside your eclipse
- spring boot 定时程序发布WAR WAR部署TOMCAT
- Spring Boot打包war jar 部署tomcat
- Spring boot打包war、jar部署tomcat
- Tomcat 部署war包大小超出限制的大小(严重: HTMLManager: FAIL - Deploy Upload Failed, Exception)
- idea启动tomcat报错:Artifact mmall:war: Server is not connected. Deploy is not available
- Hot Deploy maven project from eclipse to tomcat
- spring profile来用不同的文件,配置不同的环境, deploy不同的war
- How to deploy spring cloud microservice on Azure cloud
- How to create a Maven web app and deploy to Tomcat - fast
- How to create a Maven web app and deploy to Tomcat - fast
- How to create a Maven web app and deploy to Tomcat - fast
- 使用tomcat,不再deploy
- tomcat resin之deploy
- Jquery中AJAX参数详细列表
- android平台vlc对mms的支持
- Android Display架构分析--侧重高通平台
- powerDesigner中UML建模
- nuget pre-release
- deploy spring war to tomcat.
- word2003,使用修订模式
- OAuth2.0的refresh token
- PHP 动态变量
- 轻量级Java EE企业应用实战(第3版):Struts 2+Spring 3+Hibernate整合开发(含CD光盘1张)
- WIn7安装PHP fastcgi for IIS
- xml的变量命名和布局
- WPF专属计时器
- 开贴~~~~~~~~~~虚拟视点绘制