Uploaded image for project: 'Magnolia Mail Module'
  1. Magnolia Mail Module
  2. MGNLMAIL-135

Update javax.activation dependency to jakarta.activation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.5.14
    • 5.5.13
    • None
    • None

      After BUILD-871 is completed the mail module should be updated to use the managed dependency.

       \- info.magnolia:magnolia-module-mail:jar:5.5.10:compile
      [INFO] |     +- com.sun.mail:javax.mail:jar:1.6.2:provided
      [INFO] |     +- javax.activation:activation:jar:1.1.1:compile
      

      Notes
      It seems javax.activation is deprecated in Java 9
      Move from:

      <dependency>
        <groupId>javax.activation</groupId>
        <artifactId>activation</artifactId>
      </dependency>
      

      to

      <dependency>
          <groupId>jakarta.activation</groupId>
          <artifactId>jakarta.activation</artifactId>
      </dependency>
      

      However, trying locally I am able to remove both of these dependencies from the mail pom without any problems:

      <dependency>
          <groupId>jakarta.activation</groupId>
          <artifactId>jakarta.activation-api</artifactId>
          <version>1.2.2</version>
       </dependency>
      ...
      ...
      <dependency>
          <groupId>javax.activation</groupId>
          <artifactId>activation</artifactId>
      </dependency>
      

        Acceptance criteria

              chuong.doan Chuong Doan Huy
              rgange Richard Gange
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD