[
https://issues.apache.org/jira/browse/MNG-7467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiajing Lu updated MNG-7467:
----------------------------
Description:
The latest version maven 3.8.5 failed to compile modules with relocated
transitive dependency.
I've created a minimal repo to reproduce the issue,
[https://github.com/lujiajing1126/maven3-relocate-transitive-dependency]
The "API" submodule declares a `google/guava` dependency and relocates it with
shade plugin, while the "Service" module uses "API" as a dependency.
The CI shows the code can be compiled with maven <=3.8.4, including
* 3.8.4
* 3.8.1
* 3.6.3
* 3.5.4
But it failed the maven-3.8.5 case.
I'm not sure whether it is a regression or a new feature/bugfix.
was:
The latest version maven 3.8.5 failed to compile modules with relocated
transitive dependency.
I've created a minimal repo to reproduce the issue,
[https://github.com/lujiajing1126/maven3-relocate-transitive-dependency]
The "API" submodule declares a `google/guava` dependency and relocates it with
shade plugin, while the "Service" module uses "API" as a dependency.
The CI shows the code can be compiled with versions <=3.8.4, including
* 3.8.4
* 3.8.1
* 3.6.3
* 3.5.4
But it failed the maven-3.8.5 case.
I'm not sure whether it is a regression or a new feature/bugfix.
> Compilation failure with relocated transitive dependency
> --------------------------------------------------------
>
> Key: MNG-7467
> URL: https://issues.apache.org/jira/browse/MNG-7467
> Project: Maven
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.8.5
> Environment: Ubuntu and/or MacOS
> Reporter: Jiajing Lu
> Priority: Major
>
> The latest version maven 3.8.5 failed to compile modules with relocated
> transitive dependency.
> I've created a minimal repo to reproduce the issue,
> [https://github.com/lujiajing1126/maven3-relocate-transitive-dependency]
>
> The "API" submodule declares a `google/guava` dependency and relocates it
> with shade plugin, while the "Service" module uses "API" as a dependency.
> The CI shows the code can be compiled with maven <=3.8.4, including
> * 3.8.4
> * 3.8.1
> * 3.6.3
> * 3.5.4
> But it failed the maven-3.8.5 case.
> I'm not sure whether it is a regression or a new feature/bugfix.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)