Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13512

Duplicated classes in META-INF folder

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Rejected
    • None
    • None
    • None

    Description

      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.

      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
      

      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.

      Attachments

        Activity

          People

            ropalka Richard Opalka
            antferna Antonio Fernandez Alhambra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: