Integration with Maven with RTC 4.0.2 (Team concert plugin)
![]()
chung Lin (10●4●6)
| asked Dec 11 '13, 3:08 p.m.
retagged Dec 13 '13, 11:11 a.m. by David Lafreniere (4.8k●7)
Our current setup is that we use invoke ant to trigger build.xml file whenever we run a build from Jenkins or RTC, but now we would like to implement the Ant build.xml that we have into maven pom.xml Does anyone have an idea how to implement this?
|
Accepted answer
![]()
You can use the antrun plugin in your POM to run Ant scripts, but I generally discourage people from doing that.
Given that you seem hung up on preserving your old Ant build.xml, what's your motivation for using Maven? chung Lin selected this answer as the correct answer
Comments Thanks for the answer Jeff! The reason why we want to use antrun is because the pom file we are working with is already very complex already so we don't want to further complicate with our integration. :) I obviously don't know your situation, but it sounds like you are setting yourself up for failure.
|
2 other answers
![]()
You can't really map an Ant build.xml to a Maven pom.xml. Ant is procedural and Maven is declarative. Here's a short overview ... http://stackoverflow.com/questions/603189/differences-between-ant-and-maven.
You really need to start simple with http://maven.apache.org/ and build up a pom.xml until all aspects of your build are covered. Comments Is it possible to call ant task within maven? Would that still work with RTC? Looks like Jeff's got you covered for the Ant run plugin. I hope to demonstrate how to do this soon with a blog post. You'll probably solve your problem before I get to it, but I will track my progress here, Update Jenkin plugin self-host build with progress, compile and test results using build toolkit Ant tasks ... then write a blog post or article. (289698) |