In my project i want to exclude jackson-databind
from tinkerpop
. It doesn't get excluded. I have open the pom.xml of tinkerpop https://github.com/apache/tinkerpop/blob/master/gremlin-shaded/pom.xml and I can see jackson is shaded. I have tried to exclude it:
<groupId> org.apache.tinkerpop.shaded.jackson </groupId>
also this way <groupId>com.fasterxml.jackson.core</groupId>
Both approaches didn't worked out.
<dependencies>
<dependency>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-driver</artifactId>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.tinkerpop.shaded.jackson</groupId> // com.fasterxml.jackson.core
<artifactId>jackson-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependencies>
How to exclude the shaded dependency ? Thank you
如果tinkerpop
遮蔽了另一个 jar,并将生成的类包含在最终的tinkerpop
jar 中(通常是这种情况),则不能排除另一个 jar,因为它已成为tinkerpop
一部分。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.