You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there are multiple versions of commons-codec:commons-codec in pacbot\commons\pac-batch-commons. As shown in the following dependency tree, according to Maven's “nearest wins” strategy, only commons-codec:commons-codec:1.2 can be loaded, commons-codec:commons-codec:1.10 and commons-codec:commons-codec:1.11 will be shadowed.
However, one method defined in shadowed version commons-codec:commons-codec:1.11 is referenced by client project via org.apache.httpcomponents:httpclient:4.5.9, but missing in the actually loaded version commons-codec:commons-codec:1.2.
For instance, the following missing method(defined in commons-codec:commons-codec:1.11) is actually referenced by pacbot\commons\pac-batch-commons, which will introduce a runtime error(i.e., "NoSuchMethodErrors") into pacbot\commons\pac-batch-commons. Missing method:org.apache.commons.codec.binary.Base64: void init (int) is invoked by pacbot\commons\pac-batch-commons via the following path:
Declare a direct dependency commons-codec:commons-codec:1.11 in the pom file of pacbot\commons\pac-batch-commons to upgrade version from 1.2 to 1.11.
Use configuration attribute <dependencyManagement> to unify the version of library commons-codec:commons-codec to be 1.11 in pacbot\commons\pac-batch-commons's pom file.
Use <exclude> to exclude commons-codec:commons-codec:1.2 from the dependency tree, so version 1.11 will be loaded.
Please let me know which solution do you prefer? I can submit a PR to fix it.
Thank you very much for your attention.
Best regards,
Issue description
Hi, there are multiple versions of commons-codec:commons-codec in pacbot\commons\pac-batch-commons. As shown in the following dependency tree, according to Maven's “nearest wins” strategy, only commons-codec:commons-codec:1.2 can be loaded, commons-codec:commons-codec:1.10 and commons-codec:commons-codec:1.11 will be shadowed.
However, one method defined in shadowed version commons-codec:commons-codec:1.11 is referenced by client project via org.apache.httpcomponents:httpclient:4.5.9, but missing in the actually loaded version commons-codec:commons-codec:1.2.
For instance, the following missing method(defined in commons-codec:commons-codec:1.11) is actually referenced by pacbot\commons\pac-batch-commons, which will introduce a runtime error(i.e., "NoSuchMethodErrors") into pacbot\commons\pac-batch-commons.
Missing method:org.apache.commons.codec.binary.Base64: void init (int) is invoked by pacbot\commons\pac-batch-commons via the following path:
Suggested fixing solutions:
Please let me know which solution do you prefer? I can submit a PR to fix it.
Thank you very much for your attention.
Best regards,
Dependency tree----
The text was updated successfully, but these errors were encountered: