alibaba / druid

阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
https://github.com/alibaba/druid/wiki
Apache License 2.0
27.9k stars 8.57k forks source link

gradle 依赖问题 1.2.6 #4309

Open 651332399 opened 3 years ago

651332399 commented 3 years ago

错误信息: '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

修改pom 删除以下下依赖,因为在profile中已经指定了

com.sun tools 1.8 system ${project.basedir}/lib/openjdk-1.8-tools.jar
    <dependency>
        <groupId>com.sun</groupId>
        <artifactId>jconsole</artifactId>
        <version>1.8</version>
        <scope>system</scope>
        <systemPath>${project.basedir}/lib/openjdk-1.8-jconsole.jar</systemPath>
    </dependency>
shuohao commented 3 years ago

1.1.21也有这个问题

YiuTerran commented 3 years ago

好烦,1.2.6不能正常用啊,这种bug都有

zuston commented 3 years ago

+1

mjkohoh commented 3 years ago

我这边1.2.6也遇到类似问题,回退到1.2.5没有问题。我这边是运行mvn package有如下错误提示:

Could not resolve dependencies for project com.ruoyi:ruoyi-framework:jar:3.6.0: The following artifacts could not be resolved: com.sun:tools:jar:1.8, com.sun:jconsole:jar:1.8: Could not find artifact com.sun:tools:jar:1.8 at specified path /home/mj/.m2/repository/com/alibaba/druid/1.2.6/lib/openjdk-1.8-tools.jar 

运行环境:

luo-geng commented 3 years ago

同问

zpsw commented 3 years ago

同问+1

aircjm commented 2 years ago

这啥问题啊

luo-geng commented 2 years ago

把那两个包排除掉就ok了

<exclusions>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>jconsole</artifactId>
                </exclusion>
 </exclusions>
aircjm commented 2 years ago

把那两个包排除掉就ok了

<exclusions>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>jconsole</artifactId>
                </exclusion>
 </exclusions>

关键是这个问题之前就有 然后又几个版本没有了 现在又来 😔