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

Modules declaring dependency on CDI should get access to common annotations as well

XMLWordPrintable

      The actual POM dependency chain in CDI is:

      CDI -> interceptors API -> common annotations API

       
      However, WFLY modules don't mimic this and WFLY modules depending on CDI need to explicitly depend on common annotations in order to enable functionalities such as @PreDestroy on their beans (which is how we discovered this as part of WFLY-13588).

       

      There are two solutions:

      1. Change interceptors module to depend on common annotations and export it
        1. This is more complex because they each exist in different project (wfly versus core)
        2. Furthermore, interceptors likely only have the dependency because of javadoc
      2. We add common annotations as CDI module dependency and export is
        1. After chat with Brian, we chose this as the go-to solution

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: