Does anyone know how to add the tools.jar in the Sun/Oracle JDK to the Maven 1.x dependencies, in such a way that it will be added to the Eclipse build path after running:
>maven eclipse
I can add the tools.jar dependency as a pregoal in my maven.xml, but that doesn't help me when I run the above command to set up my project dependencies in Eclipse. Requiring everyone who checks out the sourcecode to manually edit their project dependencies in Eclipse is an antipattern.
Please note that this has to be for Maven 1.x, as our project is too large and has too much configuration to upgrade to Maven 2 or 3 in the foreseeable future.
Thank you!