You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/04/20 07:19:08 UTC

[hop] branch master updated: HOP-3908 - MailInput: ERROR: java.lang.NoClassDefFoundError: javax/activation/DataSource when used on JDK 11

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 9022a95399 HOP-3908 - MailInput: ERROR: java.lang.NoClassDefFoundError: javax/activation/DataSource when used on JDK 11
     new 9e0ee35f15 Merge pull request #1462 from sramazzina/HOP-3903
9022a95399 is described below

commit 9022a95399abc743ce76fceb414d1514b769111b
Author: Sergio Ramazzina <se...@serasoft.it>
AuthorDate: Tue Apr 19 17:15:03 2022 +0200

    HOP-3908 - MailInput: ERROR: java.lang.NoClassDefFoundError: javax/activation/DataSource when used on JDK 11
---
 assemblies/plugins/transforms/mailinput/pom.xml                   | 7 +++++++
 assemblies/plugins/transforms/mailinput/src/assembly/assembly.xml | 1 +
 plugins/transforms/mailinput/pom.xml                              | 8 ++++++++
 3 files changed, 16 insertions(+)

diff --git a/assemblies/plugins/transforms/mailinput/pom.xml b/assemblies/plugins/transforms/mailinput/pom.xml
index 04984887b0..8734529f72 100644
--- a/assemblies/plugins/transforms/mailinput/pom.xml
+++ b/assemblies/plugins/transforms/mailinput/pom.xml
@@ -48,6 +48,13 @@
             <version>2.0.0-SNAPSHOT</version>
             <scope>compile</scope>
         </dependency>
+         <!-- Needed to work on JDK 11 - Start -->
+        <dependency>
+            <groupId>com.sun.activation</groupId>
+            <artifactId>javax.activation</artifactId>
+            <version>1.2.0</version>
+        </dependency>
+        <!-- Needed to work on JDK 11 - End -->
         <dependency>
             <groupId>javax.mail</groupId>
             <artifactId>mail</artifactId>
diff --git a/assemblies/plugins/transforms/mailinput/src/assembly/assembly.xml b/assemblies/plugins/transforms/mailinput/src/assembly/assembly.xml
index 803db137fe..dae8ecd231 100644
--- a/assemblies/plugins/transforms/mailinput/src/assembly/assembly.xml
+++ b/assemblies/plugins/transforms/mailinput/src/assembly/assembly.xml
@@ -56,6 +56,7 @@
             <outputDirectory>lib</outputDirectory>
             <includes>
                 <include>javax.mail:mail:jar</include>
+                <include>com.sun.activation:javax.activation:jar</include>
             </includes>
         </dependencySet>
     </dependencySets>
diff --git a/plugins/transforms/mailinput/pom.xml b/plugins/transforms/mailinput/pom.xml
index 328e5bb8f6..5f8df2942e 100644
--- a/plugins/transforms/mailinput/pom.xml
+++ b/plugins/transforms/mailinput/pom.xml
@@ -40,6 +40,14 @@
             <version>1.4.7</version>
             <scope>compile</scope>
         </dependency>
+        <!-- Needed to work on JDK 11 - Start -->
+        <dependency>
+            <groupId>com.sun.activation</groupId>
+            <artifactId>javax.activation</artifactId>
+            <version>1.2.0</version>
+            <scope>compile</scope>
+        </dependency>
+        <!-- Needed to work on JDK 11 - End -->
         <dependency>
             <groupId>org.apache.hop</groupId>
             <artifactId>hop-action-getpop</artifactId>