[英]SVN Checkout for deploying Maven projects
I have a Maven Spring MVC project. 我有一个Maven Spring MVC项目。 How do I add that to a SVN and perform commits and how do I deploy it to a Tomcat server via SVN checkout.
如何将其添加到SVN并执行提交,以及如何通过SVN检出将其部署到Tomcat服务器。 I have created an account with assembla.
我已经使用assembla创建了一个帐户。 what's the next step?
下一步是什么?
Currently I use mvn war:war
command to build war for deployment. 当前,我使用
mvn war:war
命令来构建war进行部署。 But its a tedious job as for a small change we may have to deploy all the files again. 但这是一项繁琐的工作,因为我们可能需要再次部署所有文件,以进行小的更改。
Or do you suggest any other method for the same? 还是您建议使用其他任何相同的方法?
+1 for Jenkins. 詹金斯+1。 In DEV, if you run a Tomcat server locally, you can create a symbolic link from your src/main/webapp folder into the deploy folder (the linked should have .war suffix).
在DEV中,如果您在本地运行Tomcat服务器,则可以从src / main / webapp文件夹创建符号链接到deploy文件夹(链接应带有.war后缀)。
To have all libs (and other required configured resources) automatically injected in src/main/webapp/WEB-INF, run mvn war:inplace
(make sure you do no commit those resources to SVN) 要将所有库(和其他必需的已配置资源)自动注入src / main / webapp / WEB-INF中,请运行
mvn war:inplace
(确保您不将这些资源提交给SVN)
A dummy edit to web.xml will trigger an automatic re-deploy in Tomcat (not true in Jetty) 对web.xml的虚拟编辑将触发Tomcat中的自动重新部署(在Jetty中不正确)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.