Maven AspectJ plugin fails to build with Java 9 due to missing tools.jar : <p>I switched my JDK version from 8 to 9 and the AspectJ plugin no longer works due to missing tools.jar:</p>

<p><em>Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.10:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.10 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:9.0.1 at specified path C:\Program Files\Java\jdk-9.0.1/../lib/tools.jar</em></p>

<p>I understand that tools.jar (and rt.jar) were removed from Java 9 JDK. I am wondering if there a way to get Maven AspectJ plugin to work with Java 9 without tools.jar?</p>

<p>Here is my plugin definition with version info:</p>

<pre><code>    &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;aspectj-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.10&lt;/version&gt;
      &lt;configuration&gt;       
      &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
      &lt;complianceLevel&gt;1.9&lt;/complianceLevel&gt;
      &lt;showWeaveInfo&gt;true&lt;/showWeaveInfo&gt;
      &lt;XnoInline&gt;true&lt;/XnoInline&gt;         
      &lt;/configuration&gt;
      &lt;executions&gt;
        &lt;execution&gt;
          &lt;goals&gt;
            &lt;goal&gt;compile&lt;/goal&gt;
              &lt;goal&gt;test-compile&lt;/goal&gt;
          &lt;/goals&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;     
      &lt;dependencies&gt;
       &lt;dependency&gt;
       &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
       &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
       &lt;version&gt;1.9.0.RC2&lt;/version&gt;
      &lt;/dependency&gt; 
      &lt;dependency&gt;
        &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
        &lt;artifactId&gt;aspectjtools&lt;/artifactId&gt;
        &lt;version&gt;1.9.0.RC2&lt;/version&gt;
       &lt;/dependency&gt;          
      &lt;/dependencies&gt;
    &lt;/plugin&gt;
</code></pre>
