简体   繁体   中英

SVN Checkout for deploying Maven projects

I have a Maven Spring MVC project. How do I add that to a SVN and perform commits and how do I deploy it to a Tomcat server via SVN checkout. I have created an account with assembla. what's the next step?

Currently I use mvn war:war command to build war for deployment. 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?

You have to check out, compile, test, build, report and deploy. That's a job for jenkins .

+1 for Jenkins. 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).

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)

A dummy edit to web.xml will trigger an automatic re-deploy in Tomcat (not true in Jetty)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM