maven Cannot resolve com.sun.jmx:jmxri:1.2.1
定位到maven依赖报错的jar
kafka.jar里的jmxri报错,排除jmxri即可
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.9.2</artifactId>
<version>0.8.1</version>
<exclusions>
<!--把无法下载的包排除 貌似没用到-->
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
</exclusions>
</dependency>
标签:jmx,resolve,1.2,sun,maven,com,jmxri
From: https://www.cnblogs.com/haveanicedayfh/p/17589826.html