juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JUNEAU-92) Depend on javax.activation for Java 11
Date Sat, 01 Dec 2018 20:29:00 GMT

    [ https://issues.apache.org/jira/browse/JUNEAU-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16705995#comment-16705995
] 

ASF GitHub Bot commented on JUNEAU-92:
--------------------------------------

jamesbognar closed pull request #23: [JUNEAU-92] Depend on javax.activation for Java 11.
URL: https://github.com/apache/juneau/pull/23
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.gitignore b/.gitignore
index bc69d987f..53803437a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
 **/.DS_Store
 target
+**/.settings
+
diff --git a/pom.xml b/pom.xml
index 121faa35b..c7c25e297 100644
--- a/pom.xml
+++ b/pom.xml
@@ -80,6 +80,18 @@
 				<artifactId>japicmp</artifactId>
 				<version>0.13.0</version>
 			</dependency>
+      <dependency>
+        <!-- Java 11 -->
+        <groupId>javax.activation</groupId>
+        <artifactId>javax.activation-api</artifactId>
+        <version>1.2.0</version>
+      </dependency>
+      <dependency>
+        <!-- Java 11 -->
+        <groupId>com.sun.activation</groupId>
+        <artifactId>javax.activation</artifactId>
+        <version>1.2.0</version>
+      </dependency>
 		</dependencies>
 	</dependencyManagement>
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Depend on javax.activation for Java 11
> --------------------------------------
>
>                 Key: JUNEAU-92
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-92
>             Project: Juneau
>          Issue Type: Improvement
>          Components: Code
>    Affects Versions: 7.2.2
>            Reporter: Gary Gregory
>            Priority: Major
>
> In order to run on Java 11, Juneau must depend onĀ {{javax.activation}} for classes like
{{javax/activation/MimetypesFileTypeMap}}:
> {noformat}
> java.lang.NoClassDefFoundError: javax/activation/MimetypesFileTypeMap
> 	at org.apache.juneau.rest.RestServlet.init(RestServlet.java:50)
> 	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:672)
> 	at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:521)
> {noformat}
> Maven coordinates:
> {code:xml}
>     <dependency>
>       <!-- Java 11 -->
>       <groupId>javax.activation</groupId>
>       <artifactId>javax.activation-api</artifactId>
>       <version>1.2.0</version>
>     </dependency>
>     <dependency>
>       <!-- Java 11 -->
>       <groupId>com.sun.activation</groupId>
>       <artifactId>javax.activation</artifactId>
>       <version>1.2.0</version>
>     </dependency>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message