multi maven build
Hi, I have a question about maven usage within teamcity.
We are using a maven 2 plugin called dashboard, there is a problem using this in teamcity. You should run this plugin in multiple steps
mvn clean install site:site
mvn dashboard:dashboard dashboard:persist
mvn site:deploy
It would be nice if it is possible to clearly define multiple tasks for maven in one build. Another product uses | for that:
mvn clean install site:site | dashboard:dashboard dashboard:persist | site:deploy
If someone has a way that we can already do this, that would be great.
thanks, Jettro
Please sign in to leave a comment.
Hello Jettro,
Unfortunately, TeamCity doesn't have such an ability.
However, instead of using Maven runner you can use command line runner for
executing a batch script with all the required steps.
--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thanks for your reply, that is exactly the way we manage it now. I was hoping for other possibilities
Hello Jettro,
We've got a couple of similar requests. We're planning to address Maven integration
more intensively for 5.0 release so there's high probability of implementing
this feature.
Could you please explain why can't you perform these action within a single
maven execution, like this
mvn clean install site:site dashboard:dashboard dashboard:persist site:deploy
--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Here's the issue related.
http://jetbrains.net/tracker/issue/TW-4389
You can add your comments into there.
>> Thanks for your reply, that is exactly the way we manage it now. I
>> was hoping for other possibilities
>>
>> ---
>> Original message URL:
>> http://www.jetbrains.net/devnet/message/5233170#5233170
--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
This has to do with a combination of maven and the dashboard plugin. The dashboard plugin is executed in the same lifecycle as the reports that the dashboard plugin needs are generated. Therefore you need to do it in two steps.