目录
- 报错内容如下
'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
一、将jar包上传到mexus私服
1、找到本地jdk8 lib目录下的2个jar包,如下
2、将jar包上传到nexus私服
二、pom文件引用
<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>
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/280387.html