title: Build problems with Maven and GeoTools (com.sun.javadoc)
body: <p>I'm trying to build GeoTools 8.0-RC2 (itself, not a tutorial project or the like) with Maven 3.0.4. When I run <code>mvn install</code> on the root pom it seems to work fine until a build error concerning <code>com.sun.javadoc</code> and <code>com.sun.tools.doclets</code> occurs.</p>
  
  <p>The complete error trace is as follows:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project javadoc: Compilation failure: Compilation failure:
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Source.java:[22,22] error: package com.sun.javadoc does not exist
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Source.java:[23,28] error: package com.sun.tools.doclets does not exist
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Source.java:[33,37] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Source.java:[40,50] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Source.java:[160,33] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Source.java:[171,33] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Tutorial.java:[20,22] error: package com.sun.javadoc does not exist
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Tutorial.java:[21,28] error: package com.sun.tools.doclets does not exist
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Tutorial.java:[32,39] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Tutorial.java:[38,49] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Tutorial.java:[130,33] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Tutorial.java:[141,33] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Source.java:[161,28] error: cannot find symbol
  [ERROR] \GeoTools\GIT\build\maven\javadoc\src\main\java\org\geotools\maven\taglet\Tutorial.java:[131,28] error: cannot find symbol</code></pre>
  
  <p>Unfortunately, I didn't find a solution with Google, but took a look at <code>lib\tools.jar</code> in my JDK 1.7.0 u5 and discovered the missing packages there. The pom that depends on <code>tools.jar</code> is <code>build\maven\javadoc\pom.xml</code>. There are two profiles, one for SUN JDKs and one for IBM JDKs:</p>
  
  <pre><code>&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&lt;/version&gt;
              &lt;scope&gt;system&lt;/scope&gt;
              &lt;systemPath&gt;${java.home}/../lib/tools.jar&lt;/systemPath&gt;
    &lt;!-- Note: a ${tools.jar} variable exists - we should try to use it. --&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>I'm on Windows 7 x64 and my <code>%JAVA_HOME%</code> is set to <code>C:\Program Files\Java\jdk1.7.0_05</code>. I tried messing around with it but had no luck. The error remains.
  May <code>Sun Microsystems Inc.</code> be the problem because now it's from Oracle or <code>&lt;version&gt;1.5&lt;/version&gt;</code> because I have version 1.7 installed?</p>
  
  <p>Would be really nice if someone could help me out here!</p>
  
  <p>Regards,
  Alex</p>