Adding new Maven version
Answered
Does anyone here know how to add another version of Maven to their TeamCity server? We're running 9.1.3 and have Maven 3.2.3, we'd like to get 3.3.3 added. Is there an officially supported way to do this?
Thanks,
James
Please sign in to leave a comment.
I wrote a Gradle plugin to package TeamCity plugins and tools and repackaging Maven is one of the samples, https://github.com/rodm/gradle-teamcity-plugin/blob/master/samples/agent-tool-plugin/build.gradle . I've also created a project with a few examples of repackaging tools to be deployed to TeamCity agents, teamcity-tools. Checkout the project and change the version of Maven, it currently re-packages version 3.3.9.
regards,
Rod
Hello James,
We have the related request in our tracker https://youtrack.jetbrains.com/issue/TW-19690, please vote for it.
As current workaround you can install necessary Maven version to the agents manually or automatically and add a build parameter pointing to the Maven installation home so that you can later reference that in the Maven Home runner setting.
For details on distributing files to the agents automatically, see
http://confluence.jetbrains.com/display/TCD9/How+To...#HowTo...-UseanExternalToolthatMyBuildRelieson and https://confluence.jetbrains.com/display/TCD9/Installing+Agent+Tools.
If you want, you can pack the Maven version the same way the bundled Maven versions are bundled (check <TeamCity
home>\webapps\ROOT\WEB-INF\plugins\maven3_1-tool directory).
Thanks for the feedback, I appreciate it,
James