I am working on converting my JDK 1.8 project to OPEN JDK -11. As a part of that process there are several places which is uses below tools.jar references. Also I am aware that the tools.jar was depreciated from java 1.9. I need to build my project using OPEN JDK -11 without getting below error. Please support !
Error : Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.11:compile (default) on project commons: Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.11:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.11 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:11 at specified path C:\OpenJDK-11/../lib/tools.jar -> [Help 1]
**Maven tags:**
<profile> <id>default-profile</id> <activation> <activeByDefault>true</activeByDefault>
<file> <exists>${java.home}/../lib/tools.jar</exists> </file> </activation>
<properties> <toolsjar>${java.home}/../lib/tools.jar</toolsjar> </properties>
</profile>
<dependency> <groupId>jdk.tools</groupId> <artifactId>jdk.tools</artifactId>
<version>11.0</version> <scope>system</scope> <systemPath>${toolsjar}</systemPath>
</dependency>