系统相关
首页 > 系统相关> > linux编译报错druid jdk11

linux编译报错druid jdk11

作者:互联网

目录

'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>

标签:私服,sun,1.8,jar,druid,jdk11,maven,报错,com
来源: https://www.cnblogs.com/lvlinguang/p/16583584.html