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

EJB fraction + forced fraction autodetection = EJB Remote fraction included

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017.3.2
    • Component/s: plugins
    • Labels:
      None
    • Sprint:
      2017-Feb-A

      Description

      If I include the ejb fraction explicitly

      <dependency>
          <groupId>org.wildfly.swarm</groupId>
          <artifactId>ejb</artifactId>
      </dependency>
      

      and also force fraction autodetection

      <plugin>
          <groupId>org.wildfly.swarm</groupId>
          <artifactId>wildfly-swarm-plugin</artifactId>
          <version>${version.org.wildfly.swarm}</version>
          <configuration>
              <fractionDetectMode>force</fractionDetectMode>
          </configuration>
          <executions>
              <execution>
                  <goals>
                      <goal>package</goal>
                  </goals>
              </execution>
          </executions>
      </plugin>
      

      then the EJB Remote fraction is also included, even though the @javax.ejb.Remote annotation is never used in the project (this is the only class that triggers the ejb-remote fraction, see fraction-packages.properties).

      This happens on Swarm 2016.12.1 and also on current Swarm master. Reproducer is at https://github.com/Ladicek/swarm-tinies/tree/master/fraction-autodetection/explicit-ejb-fraction

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                lthon Ladislav Thon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: