I have a situation where the build script developer relied on the PATH variable in a Maven POM. The problem is that our build agents are -use and I can NOT change the PATH environment variable on the build agent. I mean it does mutliple builds and 1 build uses an older version of the app that is referenced in the POM. So I need to dynamically set the PATH variable before the Maven POM is run. I know I could use an Ant build script or BAT file to modify the PATH and then call Maven directly to run the POM. However, then you don't get the "Maven Build Info" tab or integration with the maven plugin to deploy your artifacts. TeamCity thinks it is not a Maven build now because it is either an Ant or BAT build now.
I looked at build configuration, I don't see anywhere that I can modify the PATH environment variable. Is there a way to do this? I can't imagine other people haven't run into this.