You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jin Kwon (Jira)" <ji...@apache.org> on 2021/08/20 10:31:00 UTC
[jira] [Updated] (MSHADE-403) Imports are wrongly modified even for
excluded artifacts
[ https://issues.apache.org/jira/browse/MSHADE-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Kwon updated MSHADE-403:
----------------------------
Summary: Imports are wrongly modified even for excluded artifacts (was: Imports are wrongly relocated event for excluded artifacts)
> Imports are wrongly modified even 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
> Priority: Major
>
> 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)