Maven logging in TeamCity

I would like to change the <maven>/conf/logging/simplelogger.properties. I'm sure I can hack my way into e.g. <agent>/tools/maven3_2/conf/logging/simplelogger.properties, but I'm wondering if there's a way to deal with this through TeamCity, so that it just applies this to all agents all the time. Overriding m2.conf (which TeamCity already does: teamcity.m2.conf) might be a solution for that also. Much appreciated, thank you.

1 comment
Comment actions Permalink

Hi Sander,

The recomended approach is to use command line properies or system variables, for details see the comments on stackoverflow.
Another solution is to take maven3_2-tool folder from <TeamCity Installation Directory>/webapps/ROOT/WEB-INF/plugins/, modify simplelogger.properties file in agent/maven3_2.zip and put maven3_2-tool into <TeamCity Data Directory>/plugins. In this case the new version of plugin will be distributed over all agents. However it is not recommended, because after upgrade the plugin will be replaced with a newer installed version.

0

Please sign in to leave a comment.