I created a project, pointed it to the SVN repo and specified M2 builder with default config.
When I ran the build, it failed - I saw that it was looking for settings.xml in the plugin directory and for user serrings in "C:\.m2" . Since I have customized both global and user level settings, I set %system.maven.home% to point to my local M2 installation and it fix to solve it (the app-level config is read from there).
I still could not get TC to find my user settings and my existing repo - they are in the standard location - "%USERPROFILE%/.m2", while TC is trying to find them under "C:\m2".
I tried to specify the full path to settings.xml in the build config form, but this doesn't help:
(let me know if you need more)
1 - is the %system.maven.home% property used only to resolve settings.xml and plugin-registry.xml or is it also used for the Maven classpath?
2 - what is the best way to specify global settings - copy the setting.xml to the agent's maven2/conf directory or specify the system.maven.home variable per project? Can I use property references when I specify property values (e.g., system.maven.home=%env.M2_HOME%)?