anamika
anamika

Reputation: 1

maven's pom.xml ordering

I want to checkout code from svn, then compile it and then copy 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.

Upvotes: 0

Views: 216

Answers (2)

om39a
om39a

Reputation: 1406

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

Upvotes: 0

khmarbaise
khmarbaise

Reputation: 97527

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.

Upvotes: 4

Related Questions