Jin Kwon created MSHADE-403: ------------------------------- Summary: Imports are wrongly relocated event for excluded artifacts Key: MSHADE-403 URL: https://issues.apache.org/jira/browse/MSHADE-403 Project: Maven Shade Plugin Issue Type: Bug Affects Versions: 3.2.4 Reporter: Jin Kwon
For following dependencies, {code:xml} <dependency> <groupId>org.mongodb</groupId> <artifactId>mongodb-driver-reactivestreams</artifactId> <version>${version.org.mongodb}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.mongodb</groupId> <artifactId>mongodb-driver-sync</artifactId> <version>${version.org.mongodb}</version> <scope>compile</scope> </dependency> {code} I excluded them {code:xml} <artifactSet> <excludes> <exclude>org.mongodb:*</exclude> </excludes> </artifactSet> {code} and relocate for other artifacts. {code:xml} <relocation> <pattern>com</pattern> <shadedPattern>com.mycompany.relocated.com</shadedPattern> <excludes> <exclude>com.mycompany.**</exclude> </excludes> </relocation> {code} Those excluded artifacts are not contained in the shaded artifact. But I see wrongly modified imports from one of main class. {code:java} mport com.mycompany.relocated.com.mongodb.MongoClientSettings; import com.mycompany.relocated.com.mongodb.client.MongoClient; import com.mycompany.relocated.com.mongodb.client.MongoClients; {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)