开发者

maven's pom.xml ordering

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜