I have a maven project in Eclipse where I am using some hadoop libraries (hadoop-common, hadoop-auth, hadoop-hdfs) and these bring in a dependency on jdk.tools. When I check this project out on a different machine, it works fine, but on mine the pom.xml complains about "missing artifact jdk.tools:jdk:tools:jar:1.6". I can fix this by adding a dependency manually and specifying the file on my local drive (eg "${JAVA_HOME}/../lib/tools.jar") but I would like to understand why it works on one computer and not on another - I am assuming there is something wrong with my setup?
I have tried the following:
Made sure Eclipse is running in a JDK by adding "-vm C:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe" to my eclipse.ini file. The only JRE listed under Eclipse preferences Java -> Installed JREs is the same JDK. Tried switching maven version in Eclipse preferences Maven -> Installations between "Embedded (3.0.4)", "External (3.0.4)" and "External (2.2.1)"
Maybe something I need to add/change in my maven settings.xml file?
Any suggestions would be appreciated!
FYI I am using Eclipse Java EE Juno SR1 and M2E 1.2.0.