开发者

maven's pom.xml ordering

开发者 https://www.devze.com 2023-03-13 22:31 出处:网络
I want to checkout code from svn, then compile it and then copy开发者_C百科 it to a remote location and then deploy the war file. can you please provide me a sample pom.xml file in which all these tas

I want to checkout code from svn, then compile it and then copy开发者_C百科 it to a remote location and then deploy the war file. can you please provide me a sample pom.xml file in which all these tasks have been performed in the above given ordering.


You can't do that in the POM cause Maven is not Ant...you can do that by using Jenkins/Hudson or any other CI solution.


Jenkins+Hudson can do this... But It don't mean that it cannot be done in Pom.xml. We can also use combination of ant scripts in pom.xml and we can use Maven AntRun Plugin to execute them. So by maven we can checkout code from svn, then compile it and then copy it to a remote location and then deploy the war file.

Check out this Usage Page

0

精彩评论

暂无评论...
验证码 换一张
取 消