'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${project.basedir}/lib/openjdk-1.8-tools.jar in com.alibaba:druid:1.2.6 'dependencies.dependency.systemPath' for com.sun:jconsole:jar must specify an absolute path but is ${project.basedir}/lib/openjdk-1.8-jconsole.jar in com.alibaba:druid:1.2.6
1、找到本地jdk8 lib目录下的2个jar包,如下
2、将jar包上传到nexus私服
<dependencies> <!--解决druid jdk11编译报错--> <dependency> <groupId>com.sun</groupId> <artifactId>jconsole</artifactId> <version>1.8</version> </dependency> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.8</version> </dependency> </dependencies> <repositories> <repository> <id>maven-releases</id> <url>http://192.168.3.12/repository/maven-releases/</url> </repository> <repository> <id>maven-snapshots</id> <url>http://192.168.3.12/repository/maven-snapshots/</url> </repository> </repositories>