title: Missing artifact com.sun:tools:jar:1.5.0 maven
body: <p>I am using maven in my web project this is how my pom.xml looks
  I use eclipse juno,with apache tomcat 7,I am runnning windows xp OS,"C:\Program Files\Java\jdk1.6.0_23\lib"  is where my tools jar is.i tried hardcoding it in pom.xml but it was telling cant hard code.tried the below using profiles still same error "Missing artifact com.sun:tools:jar:1.5.0" please please help I am fed up since 1 week of googling</p>
  
  <pre><code>    &lt;/dependencies&gt;
  &lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;default-tools.jar&lt;/id&gt;
        &lt;activation&gt;
          &lt;property&gt;
            &lt;name&gt;java.vendor&lt;/name&gt;
            &lt;value&gt;Sun Microsystems Inc.&lt;/value&gt;
          &lt;/property&gt;
        &lt;/activation&gt;
        &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.sun&lt;/groupId&gt;
            &lt;artifactId&gt;tools&lt;/artifactId&gt;
            &lt;version&gt;1.5.0&lt;/version&gt;
            &lt;scope&gt;system&lt;/scope&gt;
            &lt;systemPath&gt;${java.home}/../lib/tools.jar&lt;/systemPath&gt;
          &lt;/dependency&gt;
        &lt;/dependencies&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
  
  &lt;/project&gt;
  
  
   I:\eclipse-jee-juno-RC3-win32\workspace\MYProject&gt;mvn clean install
  [INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building MYProject 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.594s
  [INFO] Finished at: Sat Feb 23 20:49:53 GMT+05:30 2013
  [INFO] Final Memory: 3M/15M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project MYProject: Could not resolve dependencies for project MYProject:MYProject:war:0.0.1-SNAPSHOT: Failure to find com.sun:tools:jar:1
  .5.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
  'cmd' is not recognized as an internal or external command,
  operable program or batch file.
  I:\eclipse-jee-juno-RC3-win32\workspace\MYProject&gt;
  </code></pre>