Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-386

addAllDependencies() add unncessary libraries

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0.Beta6
    • Fix Version/s: 1.0.0.Beta7
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Add some libraries such like hibernate-core as provided scope.

      I've created a small reproducer.

      git clone https://github.com/emag/add-all-dependencies-demo.git \
        && cd add-all-dependencies-demo \
        && git checkout origin/ClassCastException-org.dom4j.DocumentFactory \
        && ./mvnw wildfly-swarm:run
      
      Show
      Add some libraries such like hibernate-core as provided scope. I've created a small reproducer. git clone https: //github.com/emag/add-all-dependencies-demo.git \ && cd add-all-dependencies-demo \ && git checkout origin/ClassCastException-org.dom4j.DocumentFactory \ && ./mvnw wildfly-swarm:run

      Description

      Apparently, addAllDepnedencies() add unnecessary librarties to WEB-IN/lib when wildfly-swarm:run or Arq Tests.

      As a reuslt, some libraries will conflict with libraries provided WildFly.

      uberjar works, so I suspect this is caused from classpath difference.

      I attached my reproducer log. In this case thrown ClassCastException.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                emag Yoshimasa Tanabe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: