I have configured Jenkins to install maven automatically on slaves when building the first time. This works when I run jobs that were created off of "Maven Project" templates. I just have to specify the goals and everything works.
It is with free-style software projects that I am having trouble with. How do I tell Jenkins to pass the path of installed maven to these jobs? For now, I am adding the maven path in the build section of the jobs.
I added the maven path to ~/.bashrc, ~/.bash_profile on the slave, but that didn't help either.