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

fraction autodetection: mvn wildfly-swarm:package vs. :start

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2016.11.0
    • 2016.12.1
    • plugins
    • None
    • 2016-Dec-A

    Description

      I have this small project that depends on the EJB, JAX-RS and CDI APIs and relies on fraction autodetection: https://github.com/Ladicek/swarm-tinies/tree/master/fraction-autodetection/cdi-jaxrs-ejb

      With Swarm 2016.10.0, both mvn wildfly-swarm:package and mvn wildfly-swarm:start autodetect the same set of fractions:

      [INFO] Detected fractions: ejb:2016.10.0, jaxrs-cdi:2016.10.0
      

      With current master, wildfly-swarm:start detects the same fractions

      [INFO] Detected fractions: ejb:2016.11.0-SNAPSHOT, jaxrs-cdi:2016.11.0-SNAPSHOT
      

      but wildfly-swarm:package detects much more:

      [INFO] Detected fractions: ejb-remote:2016.11.0-SNAPSHOT, jaxrs-cdi:2016.11.0-SNAPSHOT, jaxrs-jaxb:2016.11.0-SNAPSHOT
      

      I spent some time in the debugger and the difference seems to be that during wildfly-swarm:start, provided dependencies are ignored for the purpose of fraction autodetection, but during wildfly-swarm:package, they are taken into account as well. (In general, this isn't only about provided dependencies, more scopes come into play here.)

      Attachments

        Issue Links

          Activity

            People

              rhn-support-hbraun Heiko Braun
              lthon@redhat.com Ladislav Thon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: