I have the following problem:
Using Eclipse, I created a maven Spring project running at localhost. My task is to create a deployment procedure for moving the local project to dev/production server.
The flow is the following: I commit the changes to the corporate SVN. I wrote a script, which downloads the latest revision to the dev server. I also have maven installed on the same server.
How do I tell maven to build this project (let's say the source is downloaded from the SVN to /home/project1/latest/
), so I can rsync the compiled java class files to the tomcat root directory?
It is always the best practice to build the project in a common Build server(using continuous integration utility like Jenkins) and then distributing the same jar/war files to the required environment.
This will make sure that the tested code-base gets upgraded to higher environments.
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.