[
https://issues.redhat.com/browse/WFLY-13512?page=com.atlassian.jira.plugi...
]
Richard Opalka commented on WFLY-13512:
---------------------------------------
Hi [~antferna] this is new feature introduced in JDK9.
When Java Platform Module System was introduced,
together with it was introduced also so called
"multirelease jar file" that is a jar file that may contain
classes with different behaviour on different JDK versions.
Classes in META-INF/version subfolder are targeting
particular JDKs. It is not an error or packaging issue.
I suggest you to upgrade the enforcer maven plugin -
newer versions should be familiar with this JDK feature.
Duplicated classes in META-INF folder
-------------------------------------
Key: WFLY-13512
URL:
https://issues.redhat.com/browse/WFLY-13512
Project: WildFly
Issue Type: Quality Risk
Reporter: Antonio Fernandez Alhambra
Priority: Major
Labels: reported-by-qe
Attachments: Screenshot from 2020-05-14 17-20-16.png
There are duplicated classes inside the org.wildfly.common:wildfly-common file.
So whenever the enforcer maven plugin is used for building, if there is a dependency in
the pom.xml, enforcer plugin will fail complaining about this jar due to these duplicated
jar files.
{noformat}
Duplicate classes found:
Found in:
org.kie.server:kie-server-router-proxy:jar:7.38.0-SNAPSHOT:compile
org.wildfly.common:wildfly-common:jar:1.5.1.Final:compile
Duplicate classes:
META-INF/versions/9/org/wildfly/common/lock/JDKSpecific.class
META-INF/versions/9/org/wildfly/common/os/ProcessRedirect.class
META-INF/versions/9/org/wildfly/common/lock/Substitutions$Target_PauseNode.class
META-INF/versions/9/org/wildfly/common/os/GetProcessInfoAction.class
META-INF/versions/9/org/wildfly/common/lock/JDKSpecific$1.class
META-INF/versions/9/org/wildfly/common/lock/Substitutions.class
META-INF/versions/9/org/wildfly/common/lock/Substitutions$Target_JDKSpecific.class
META-INF/versions/11/org/wildfly/common/archive/JDKSpecific.class
META-INF/versions/9/org/wildfly/common/cpu/ProcessorInfo.class
{noformat}
Seems these duplicated classes are bundled in the jar since version 1.4.x onwards.
These duplicated classes are located in the META-INF/versions folders inside the jar.
Attached a screenshot of the same.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)